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 am trying to read through a DM File using the -REPEAT command to issue -READ commands. The following syntax will not execute. I have tried setting the &STAKEHOLDID to other variables using -SET but that does not work either. By the way the value in &STAKEHOLDERIDcan be a very long signed integer such as -2945354156300304384.
TABLE FILE EIS_PA_OFFICERSTAKEHDRS PRINT STAKEHOLDERID WHERE APPLICATIONID = &appid -*ON TABLE SAVE AS SAVE01 ON TABLE HOLD AS SAVE01 FORMAT BINARY END -RUN -START -DEFAULTH &STAKEHOLDERID=0 -READ SAVE01, NOCLOSE &STAKEHOLDERID -REPEAT THE_LOOP WHILE (&IORETURN EQ 0); SET EMPTYREPORT = ON SQL SQLORA PREPARE SQLOUT FOR SELECT NAMEPREFIX, DECODE(NOOWNERSHIPINTERESTIND, '0', 'No', '1','Yes') AS OwnershipInterestYesNo, DECODE(NOPOSITIONSIND, '0','No', '1','Yes') AS HoldsPositionsYesNo, DECODE(NOTCURRENTLYREGISTEREDIND, '0','No', '1','Yes') AS CurrentlyRegisteredYesNo, APPLICATIONID, STAKEHOLDERID FROM EIS_PA_OFFICERSTAKEHDRS WHERE STAKEHOLDERID = &STAKEHOLDERID END DEFINE FILE SQLOUT DATEOFBIRTH/MDYY=HDATE(DATEOFBIRTH, 'MDYY'); APPLICATIONID/I6=APPLICATIONID; ADDRESS/A40=ADDRESS; END TABLE FILE SQLOUT....This message has been edited. Last edited by: Kerry,
It isn't apparent why the code isn't working but might I suggest that creating a WHERE IN phrase using DM might be more efficient from the Oracle side as you would only do one connect and bring back all of the data as opposed to bringing back one stakeholder at a time?
Also what happens if you remove the FORMAT BINARY?
I am using the &stakeholderid in 8 reports which are included in the Loop. For example, an organization may have three stakeholders each of which would be reported using the 8 reports and we would then move onto the next stakeholder (subsequent read).
Hope this adds clarification on why I need to bring back one stakeholder at a time.
should be WHERE APPLICATIONID EQ &appid ; And if the integer can be negative you may want to include it inside parentheses. ( &appid );
Without seeing all the code and the data behind it, we can't easily see why it might not be working. Could be lots of things. What is the error message you're getting?
I would follow Francis' advice and get one report working for one stakeholder. Then get one report working for all stakeholders, then 8 reports for all stakeholders. Baby steps....
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
the value in &STAKEHOLDERIDcan be a very long signed integer such as -2945354156300304384.
For Integer format, the number of digits can be a maximum of 10 plus a minus sign for negative value. Go for double precision decimal or packed instead of Integer.
Check the field format for STAKEHOLDERID in the table EIS_PA_OFFICERSTAKEHDRS. Issue this statement
?FF EIS_PA_OFFICERSTAKEHDRS
-EXIT
Why specific in Binary format? More over as Darin mentioned, use EQ in TABLE FILE .. WHERE APPLICATIONID EQ &appid.
You are trying to read from a free-format file. -READ SAVE01, NOCLOSE &STAKEHOLDERID