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     Testing a NULL value after the -READ command

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Testing a NULL value after the -READ command
 Login/Join
 
<ludo>
posted
Hi,

How can I test if the value that I have read with the -READ command is not null? I tested with this

SET NODATA = '00' 


but it doesn't work.

Somebody have an idea?
 
Report This Post
Virtuoso
posted Hide Post
With -READ you read a certain value into an &-variable.
This &var will always contain a value and if you do not specify anything, the value of the &var will be interpreted before it is being used in a comparison.
To prevent Dialog Manager from first interpreting and then evaluating, you can use the asis-phrase like:
-IF ASIS(&VAR) EQ '0'
For further info on this see:
this IB article.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
<ludo>
posted
Thanks Gamp but when I use the ASIS function, I always have the same message:

(FOC295) A VALUE IS MISSING FOR: &EFDECI
 
Report This Post
Expert
posted Hide Post
How are you creating the file that you are reading?

Have you tried testing the length?

-IF &EFDECI.LENGTH EQ 0 THEN ...


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
<ludo>
posted
quote:
ave you tried testing the length?


Great it seems to work I'm going into next step of my developments

Thx GinnyJakes
 
Report This Post
Expert
posted Hide Post
Ludo,

You can always use -IF &EFDECI.EXISTS THEN ......

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Master
posted Hide Post
If you are creating the file with WebFOCUS/FOCUS, you can test for the NODATA character string. For example:
TABLEF FILE xyz
PRINT FLD1 FLD2 FLD3 ... FLDX
ON TABLE SET NODATA NULL
ON TABLE SAVE
END
-RUN
-READ SAVE &FLD1.8 &FLD2.12 &FLD3.6...
-IF &FLD1 EQ NULL....


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report 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     Testing a NULL value after the -READ command

Copyright © 1996-2020 Information Builders