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.
I need to create a generic fex that will take a MFD and put the Fieldnames in the first column and the extracted rows in thier own unique column. fieldname trans1 trans2 trans3 NAME ABC DEF XYZ QTY 123 465 256 AMT 5.2 3.4 7.3
At present I have 38 tables/reports that I need to do this to. Can someone help?
TABLE FILE SYSCOLUM
PRINT NAME
-* required as this is a multipath file
IF SEGNO LE 5
IF TBNAME EQ CAR
ON TABLE HOLD
END
-RUN
-SET &TLINES=&LINES
TABLE FILE HOLD
SUM NAME
ON TABLE SAVE
END
-RUN
-READ SAVE &NAME.A66
DEFINE FILE CAR
CNTR/F8 WITH &NAME =CNTR+1;
COLNAME/A15 = 'Trans'|| FTOA(CNTR,'(F5)','A5');
END
TABLE FILE CAR
SUM
-SET &CNTR = 0;
-REPEAT :LOOP &TLINES TIMES
-SET &CNTR=&CNTR+1;
-SET &OVER = IF &CNTR EQ &TLINES THEN ' ' ELSE 'OVER';
-READ HOLD &FLD.A66.
&FLD &OVER
-:LOOP
ACROSS COLNAME AS ''
END
The filename can also be a &var if necessary. (SYSCOLUM is a supplied mfd)
Alan. WF 7.705/8.007
Posts: 1451 | Location: Portugal | Registered: February 07, 2007
Alan - Thanks it works for a limited number of rows. At present I am working with a max of 63 columns with around 7,000 rows. When I use this code it gives " (FOC153) VERB OBJECTS TIMES RETRIEVED COLUMNS EXCEEDS MAXIMUM". What is the limit of using OVER 15??
There is not a limit, per se, on OVER, but in conjunction with the number of values retrieved (which will be the number of columns you are getting) you have hit a limit somewhere, but not sure what it is.
Perhaps you can run with limited vales and APPEND files together.
Alan. WF 7.705/8.007
Posts: 1451 | Location: Portugal | Registered: February 07, 2007