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.
Hello Tom, There is a parameter conflict in ARG 5..This arg should contain the length of selcol.counter.length...
Hello Kamesh, Anyhow the first arg is ACCOUNT REGISTRATION CATEGORY and not ACCOUNT MNEMONIC .. Then there will not a problem.. We keep on incrementing the counter value by 1 in the loop..
The A&SelCol.&COUNTER.LENGTH is causing the problem - WebFOCUS doesn't know the length of that yet, so it probably uses a default length of 16. Change it to A500 - the maximum length of the token.
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
THe output is as follows: There are junk chars in the last value: SelCol.1 after TOK is ACCOUNT_CLOSE_DATE SelCol.2 after TOK is ACCOUNT_TYPE SelCol.3 after TOK is CUSIP SelCol.4 after TOK is ACTY_AMT 5ýp
Please someone suggest me a solution to remove this junk chars from the final counter value.
Hello Tom, I have one doubt..What does EVAL function do in a variable like SELCOL? Please clarify my doubt. I have implemented your code in my procedure.It is working fine.
Glad it is working for you. Here is some documentation from IBI website. I probably use it when not needed, so, you can take it off and see the difference.
That will give you a better understanding...
The .EVAL operator enables you to evaluate a variable's value immediately, making it possible to change a procedure dynamically. The .EVAL operator is particularly useful in modifying code at run time.
-------------------------------------------------------------------------------- Top of page --------------------------------------------------------------------------------
Syntax: How to Evaluate a Variable Immediately [&]&variable.EVAL where:
variable Is a local or global variable.
When the command procedure is executed, the expression is replaced with the value of the specified variable before any other action is performed. Without the .EVAL operator, a variable cannot be used in place of some commands.
-------------------------------------------------------------------------------- Top of page --------------------------------------------------------------------------------
Example: Using .EVAL to Allow WebFOCUS to Interpret a Variable The code
-SET &A='-TYPE'; &A HELLO produces an error message which shows that WebFOCUS does not recognize the value of &A:
Appending the .EVAL operator to the &A variable makes it possible for WebFOCUS to interpret the variable correctly. Adding the .EVAL operator as follows
-SET &A='-TYPE'; &A.EVAL HELLO produces the following output:
HELLO
-------------------------------------------------------------------------------- Top of page --------------------------------------------------------------------------------
Example: Evaluating a Variable Immediately The following example illustrates how to use the .EVAL operator in a record selection expression. The numbers to the left apply to the notes that follow the procedure:
1. -SET &R='IF SALARY GT 60000'; 2. -IF &Y EQ 'YES' THEN GOTO START; 3. -SET &R = '-*'; -START 4. TABLE FILE CENTHR PRINT SALARY BY PLANT BY LNAME 5. &R.EVAL END The procedure executes as follows:
1. The procedure sets the value of &R to 'IF SALARY GT 60000'. 2. If &Y is YES, the procedure branches to the START label, bypassing the second -SET command. 3. If &Y is NO, the procedure continues to the second -SET command, which sets &R to '-*', which is a comment. The report request is stacked.
4. The procedure evaluates the value of &R. If the end user wanted a record selection test, the value of &R is 'IF SALARY GT 60000' and this line is stacked.
5. If the end user did not want a record selection test, the value of &R is '-*' and this line is ignored.
Edit: TypoThis message has been edited. Last edited by: Tom Flynn,
The .EVAL evaluates a variable when it is encountered. In Tom's example 'A&LNGTH.EVAL' if &LNGTH is 30 then this evaluates &LNGTH as 30 making the value within the quotes 'A30' rather than literally 'A&LNGTH'
Pat WF 7.6.8, AIX, AS400, NT AS400 FOCUS, AIX FOCUS, Oracle, DB2, JDE, Lotus Notes
Posts: 755 | Location: TX | Registered: September 25, 2007