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.
TABLE FILE FPADRO PRINT WRKDAYS DELD_CASE_CNT PAID_HRS WHERE so AND so AND so ON TABLE SAVE AS DAYS END -RUN
-READ DAYS &WKDAYS.I6. &DELCASE.I9. &PDHRS.P13.
this program ran well with server 7.1.6 but now it fails with server 7.6.7 with the following error message
0 ERROR AT OR NEAR LINE 31 IN PROCEDURE ROWAICL0FOCEXEC * (FOC299) UNRECOGNIZED FORMAT OF AMPER VARIABLE IN -READ: -READ DAYS &WKDAYS.I6. &DELCASE.I9. &PDHRS.P13.
thanks, EL from BaltimoreThis message has been edited. Last edited by: Kerry,
Try doing ON TABLE HOLD FORMAT ALPHA instead. When you create the save file, can you post the formats it gives you for the fields? On your -READ, you might want to change the P13 to an A13.
To avoid any possible misunderstandings in any situation, I always use (and used) the -READ without any format indications, only lengths. My code would have read: -READ DAYS &WKDAYS.6. &DELCASE.9. &PDHRS.13. which is accepted in all previous releases of (Web)Focus, as well as the latetst one.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
You can also use the variable field length format of -READ:
DEFINE FILE FPADRO
COMMA/A1=',';
END
TABLE FILE FPADRO
PRINT WRKDAYS COMMA DELD_CASE_CNT COMMA PAID_HRS
WHERE so AND so AND so
ON TABLE SAVE AS DAYS
END
-RUN
-READ DAYS,&WKDAYS,&DELCASE,&PDHRS
Like that, if ever your MASTER is changed because the underlying DB2 table is changed, it will still work.
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006