Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     How to handle xyz.nn when no data is returned

Read-Only Read-Only Topic
Go
Search
Notify
Tools
How to handle xyz.nn when no data is returned
 Login/Join
 
<Vipul>
posted
I need help on following:


TABLE FILE CORORG
PRINT NAME
WHERE CORCUSTOMERKY EQ 2001
IF RECORDLIMIT EQ 1
ON TABLE SAVE
END
-RUN
-READ SAVE &CORORG.A64.
-TYPE &CORORG


When the table returns zero rows I get the following error
-READ SAVE &CORORG.A64.
(FOC295) A VALUE IS MISSING FOR: CORORG

Please do not tell me to check &lines and then default the variables.

Thanks,

Vipul

This message has been edited. Last edited by: <Mabel>,
 
Report This Post
Platinum Member
posted Hide Post
Only set a default value.
-DEFAULT &CORORG = 0 ;<br />-READ SAVE &CORORG.A64.<br />-TYPE &CORORG
Or validate if -READ has been successful using &IORETURN.
-READ SAVE &CORORG.A64.<br />-IF &IORETURN NE 0 ...
Regards,
Mikel
 
Posts: 173 | Location: Madrid, Spain | Registered: May 09, 2003Report This Post
<Vipul>
posted
Thanks Mikel,

I will go with the first approach.

Vipul
 
Report This Post
<WFUser>
posted
The -READ will still fail but you won't see the error. I would bypass the -READ all together.

TABLE FILE CORORG
PRINT NAME
WHERE CORCUSTOMERKY EQ 2001
IF RECORDLIMIT EQ 1
ON TABLE SAVEEND
-RUN
-IF &RECORDS EQ 0 THEN GOTO NOREAD;
-READ SAVE &CORORG.A64.-TYPE &CORORG
-NOREAD
 
Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     How to handle xyz.nn when no data is returned

Copyright © 1996-2020 Information Builders