As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
those are cool tricks; i think the standard answer 'focwizard' answer might be this: TABLE FILE CAR do stuff ON TABLE HOLD AS somefile END CHECK FILE somefile HOLD then have a look at the file called HOLD produced by the CHECK FILE statement. Not only does it tell you how many fields there are, but all kinds of cool info . The CHECK command reads the master file description of the filename specified and then you can TABLE FILE HOLD PRINT * and see all the cool info. I think you'll like this technique. It has lots of uses. Its a FOCWIZARD classic.
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
Susannah, The "Check File Filename HOLD" is very handy, but didn't work for us using Servlet, one of the reasons we switched back to cgi-bin. Does it work for you? We're on WF 5.2.1
Thanks! Carol
Posts: 428 | Location: Springfield, MA | Registered: May 07, 2003
Yes Carol. i'm in 522 and i tested this from my MRE environment where i'm stuck with Servlet as well, and it works fine. I'm upgrading to 524. but staying with ISAPI for my selfserv app. Can you use ISAPI instead of cgi?
I'm in 524 now, all works fine. Just as Mikel says, below.
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
Thank you for giving the reply. I need to catch the no. of columns in a variable so that, i can use for some calculations.
Ex: Let's say, if no of columns are 5 i will do some process else i will do some other process. So i need to capture the no. of Columns present in SQLOUT table into one variable. Please help me how can i do that.
SET HOLDLIST=PRINTONLY SET ASNAMES=ON TABLE FILE CAR PRINT CAR BY COUNTRY ACROSS BODYTYPE ON TABLE HOLD AS CARHOLD END ? HOLD CARHOLD TABLE FILE SYSTABLE PRINT COMPUTE DUMMY/A4 = TRIM('L', EDIT(COLCOUNT), 4, '0', 1, 'A4'); WHERE NAME EQ 'carhold' ON TABLE HOLD AS MYCOUNT END ? HOLD MYCOUNT -RUN -SET &MyCols = ''; -READ MYCOUNT &MyCols.4. -TYPE ------------------------- -TYPE CARHOLD has &MyCols columns. COLCOUNT is an I4, so it's a fairly natural conversion to an A4. The TRIM is only there to get rid of the leading zeros produced by EDIT. At the top, SET HOLDLIST=PRINTONLY is necessary so that DUMMY is the only field in MYCOUNT. Otherwise, COLCOUNT will be the first field in the HOLD file, and we won't get the correct value in &MyCols. In the -READ statement, you can either have .4. or .A4. - both will do the same thing.
If you're using Dialogue Manager to do branching logic, you might have to do a .EVAL on &MyCols ( -IF &MyCols.EVAL GT 5 THEN GOTO SOMEPLACE ).
Cool trick, Grzegorz... I never knew about SYSTABLE.
Hope this helps, MichaelThis message has been edited. Last edited by: <Mabel>,