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.
It seems like FOCUS is reading the first value of the DATE_VALUES.txt file and putting a 2 on the end of it. Can anybody tell me why this is happening and why it is only reading the first value? Thank you so much!!!
So, I guess I need some way to seperate out the three dates so that I can use them in an amper variable. I'm trying to do a loop through a table file using each of the three dates as my parameter.
But the output looks like this: MYDATE: 1 MYDATE: 2 MYDATE: 3
I thought it may have something to do with the A8 format that I'm trying to put it in. I tried increasing that size to A10 for the &CNT variable on the end, but that didn't work either. Thanks!
Mark, you require three variables, you need to do as above (there's a DOT between &DAYS and &CNT).
You should open your file in a text editor and check if there are trailing blanks in the file - if there are, you need to determine what the real record length is and change the LRECL parameter accordingly. Then change the -READ statement:
-READ DATELIST &DAYS.&CNT.A8. X99
where 99 is the number of trailing blanks.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
Take the RECFM F off the filedef, just have (LRECL 8 and it will work, or ignore the (RECFM F LRECL 8 altogether. If the file is 8 characters long the -READ file &var.A8 will be enough.
Alan. WF 7.705/8.007
Posts: 1451 | Location: Portugal | Registered: February 07, 2007
Alright!!! Now I'm cooking with gas!! Big Thanks to all those that helped!!! This code spits out three seperate text files, one for each date in my original text file:
FILEDEF DATELIST DISK \\HORSEISLAND\NETSHARE\MEDICAL\OOQ\SOLUTIONSWORLD\WORLDS\MARK\WORK\FEB07\DATE_VALUES.TXT (LRECL 10 -RUN -SET &CNT = 0 ; -SET &DAYS = ' '; -REPEAT MYLOOP 3 TIMES -SET &CNT = &CNT + 1 ; -READ DATELIST NOCLOSE &DAYS.A10. FILEDEF MYFILE DISK \\HORSEISLAND\NETSHARE\MEDICAL\OOQ\SOLUTIONSWORLD\WORLDS\MARK\WORK\FEB07\MY_'&CNT'_FILE.TXT TABLE FILE T2ENCNTR PRINT MEDICAL_RECORD_NUMBER DISCHARGE_DATE WHERE DISCHARGE_DATE EQ '&DAYS'; WHERE RECORDLIMIT EQ '1000'; ON TABLE HOLD AS MYFILE FORMAT COMT END
Just wondering if there is a way for the output to go to the same output file. Right now when try to make the destination file the same for all passes of the loop, I only get data from the last pass. Thoughts? Thanks!