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.
Hi all, I have a few hold file with same field name and format, for example HOLD1, HOLD2, HOLD3 till HOLD&CNT. I need to concatendate all these file together to get a new hold file NEWHOLD. The following code work fine, display the concatenated result. But I have trouble to hold the result somewhere. I have tried different place to put the ON TABLE HOLD AS NEWHOLD command, ex LOCATION1, LOCATION2. But I got error message with both location. for location1, error message is : (FOC227) THE FOCEXEC PROCEDURE CANNOT BE FOUND: EXEC
for location2, error message is : (FOC953) INVALID STRUCTURE IN SUBREQUEST: ON BYPASSING TO END OF COMMAND (FOC227) THE FOCEXEC PROCEDURE CANNOT BE FOUND: EXEC
From the webfocus document, my understanding is that I should put the hold commmand at location1. I did a search, some example put at location1, some put at location2.
Could someone please tell me how can I hold the result?
Thanks a lot.
[CODE] -SET &LOOP_CNT = &CNT -1; TABLE FILE HOLD&CNT PRINT COL1 COL2 COL3 -* LOCATION1 -REPEAT LOOP1END &LOOP_CNT TIMES -SET &CNT = &CNT-1; MORE FILE HOLD&CNT -* LOCATION2 -LOOPEND END RUN [CODE]This message has been edited. Last edited by: alu,
I'm not quite sure what you are saying but I do see a syntax error in your posted code. Your -REPEAT says to go to tab LOOP1END but your tag is actually called -LOOPEND. You need to fix one or the other.
To hold the result in a permanent place, you can put an APP HOLD dirname at the beginning of your code where dirname is a real directory or one that you have app mapped.
As Ginny says, I am not exactly sure if this is the entire snippet of code you are dealing with.
I would review how the loop is being built in the first place by putting these 2 lines just above the TABLE FILE SET XRETRIEVAL=OFF -SET &ECHO=ALL;
Any syntactical errors will get kicked out right there. If this check passes and you still get an error on execution, try using the .EVAL, correct the labelname, add a semi-colon at the end of the -REPEAT and a dashRUN.
-SET &LOOP_CNT = &CNT -1;
TABLE FILE HOLD&CNT
PRINT COL1 COL2 COL3
ON TABLE HOLD AS HOLDNEW
-REPEAT LOOPEND &LOOP_CNT TIMES;
-SET &CNT = &CNT-1;
MORE
FILE HOLD&CNT.EVAL
-LOOPEND
END
-RUN
Best regards, Sandeep MamidennaThis message has been edited. Last edited by: BlueZone,
------------------------------------------------------------------------------------------------- Blue Cross & Blue Shield of MS WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL MRE, BID, Dev. Studio, Self-Service apps & a dash of fun !!
Posts: 218 | Location: Jackson, MS | Registered: October 31, 2006
Thank you Ginny and BlueZone for your "sharp" eyes and kindness. I successfully hold the result by adding a dash to the RUN. The labelname mistake is made when I post the code. I'll remember the tip of using the SET XRETRIEVAL=OFF and SET &ECHO=ALL to catch syntactical errors.