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     [CLOSED] Null values passed for parameter

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Null values passed for parameter
 Login/Join
 
Platinum Member
posted
I have a procedure
 
-SET &ECHO = ALL;
-DEFAULT &client_i  = 'US';
-SET &PRE = IF &client_i EQ 'EU' THEN 'FR_' ELSE 's' ;
 

This works fine.
Output
-DEFAULT &client_i = 'US';
 -SET &PRE = IF US EQ 'EU' THEN 'FR_' ELSE 's' ;  


When i change the parameter name from &client_i to &client_id blank values are passed for the parameter.
 -SET &ECHO = ALL;
-DEFAULT &client_id  = 'US';
-SET &PRE = IF &client_id EQ 'EU' THEN 'FR_' ELSE 's' ; 


Output
-DEFAULT &client_id = 'US';
 -SET &PRE = IF   EQ 'EU' THEN 'FR_' ELSE 's' ;  


Is this expected.If so why is this happening.

Same happens with &host_env and &host_environment
Thank you
WF 8204

This message has been edited. Last edited by: FP Mod Chuck,
 
Posts: 181 | Registered: October 25, 2017Report This Post
Gold member
posted Hide Post
Hi Siva,
When I run your code I get the following o/p
 
-DEFAULT &client_id  = 'US';
 -SET &PRE = IF US EQ 'EU' THEN 'FR_' ELSE 's' ;
 -TYPE s
 s
 


My guess is that &client_id is a custom defined variable.

Try running
-? &
to see all the variables defined in custom settings as your values if getting overwritten.

You can also try using -SET instead of DEFAULT to verify.


WF 8.2.04
Windows/Unix
All Formats
In Focus since 2006
 
Posts: 74 | Location: UK | Registered: September 17, 2018Report This Post
Platinum Member
posted Hide Post
Hi Addy,
Yes It is a custom defined variable.
Thank you.

what does this mean? - &host_environ>=
 
Posts: 181 | Registered: October 25, 2017Report This Post
Expert
posted Hide Post
Hi Siva1925,

Please add [SOLVED] or [CLOSED] to the title of this thread as it looks like it is solved.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Gold member
posted Hide Post
quote:
Originally posted by Siva1925:

what does this mean? - &host_environ>=


My guess is that it will show you which environment you are working in.. Eg. Dev, UAT Prod etc..


WF 8.2.04
Windows/Unix
All Formats
In Focus since 2006
 
Posts: 74 | Location: UK | Registered: September 17, 2018Report This Post
Platinum Member
posted Hide Post
I ran this code in 8.2.03:
-SET &ECHO = ALL;
-DEFAULTH &client_id = 'US';
-SET &PRE = IF &client_id EQ 'EU' THEN 'FR_' ELSE 's' ;
-TYPE &|PRE is: &PRE

And got this:
-DEFAULTH &client_id = 'US';
-SET &PRE = IF US EQ 'EU' THEN 'FR_' ELSE 's' ;
-TYPE &PRE is: s
&PRE is: s

It's the same output I got when I initially used &client_i. Is there a setting that's limiting your & parameters to 8 characters?


WebFOCUS 8.2.03 - Production
WebFOCUS 8.2.04 - Sand Box
Windows 2012 R2 Server
HTML, PDF, Excel
In FOCUS since 1980
 
Posts: 115 | Location: Seattle, WA | Registered: April 07, 2015Report This Post
Virtuoso
posted Hide Post
I don't think that there is a length limitation, but
Coming from the old ages of Mainframe FOCUS I think that if you have two variables with first 8 char the same, FOCUS assume that it's the same var.

This is just an assumption and something that sounds me familiar with an old version, don't take it as the holy words.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report 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     [CLOSED] Null values passed for parameter

Copyright © 1996-2020 Information Builders