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.
works perfectly for me. Using .EVAL still prompts.
-SET &SEL_A0 = 4; -SET &SEL_A1 = 10; -SET &SEL_A2 = 11; -SET &SEL_A3 = 97; -SET &SEL_A4 = 99; -SET &TOKENVAL = ''; -REPEAT END_REP FOR COUNTER FROM 1 TO 4 -SET &TOKENVAL = || '#' || 10; -REPEAT END_REP FOR COUNTER FROM 1 TO 4 -SET &TOKENVAL = #10 || '#' || 11; -REPEAT END_REP FOR COUNTER FROM 1 TO 4 -SET &TOKENVAL = #10#11 || '#' || 97; -REPEAT END_REP FOR COUNTER FROM 1 TO 4 -SET &TOKENVAL = #10#11#97 || '#' || 99; -REPEAT END_REP FOR COUNTER FROM 1 TO 4 -END_REP -TYPE #10#11#97#99 #10#11#97#99
If the index variable doesn't work, i.e.
-SET &ECHO=ALL;
-SET &SEL_A0 = 4;
-*SET &SEL_A1 = 10;
-SET &SEL_A2 = 11;
-SET &SEL_A3 = 97;
-SET &SEL_A4 = 99;
-SET &TOKENVAL = '';
-REPEAT END_REP FOR &COUNTER FROM 1 TO &SEL_A0
-SET &TOKENVAL = &TOKENVAL || '#' || &SEL_A.&COUNTER;
-END_REP
-TYPE &TOKENVAL
results in:
-SET &SEL_A0 = 4;
-*SET &SEL_A1 = 10;
-SET &SEL_A2 = 11;
-SET &SEL_A3 = 97;
-SET &SEL_A4 = 99;
-SET &TOKENVAL = '';
-REPEAT END_REP FOR COUNTER FROM 1 TO 4
0 ERROR AT OR NEAR LINE 10 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC295) A VALUE IS MISSING FOR: &SEL_A1
This is because parameter prompting is a pre-parser and does not see &SEL_A1. This is not seen until the process actually runs. For neither does parameter prompting come in to play.
(pressed POST too early…)This message has been edited. Last edited by: Alan B,
Alan. WF 7.705/8.007
Posts: 1451 | Location: Portugal | Registered: February 07, 2007
After the EVALuation, you are left (on the first round) with:
-SET &TOKENVAL = &TOKENVAL || '#' || &SEL_A.1;
Since "1" is not a reference to a variable, the syntax for indexing is not satisfied, and the "." just indicates catenation, to be performed after &SEL_A is evaluated.
Since &SEL_A is undefined, you get prompted.
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
If you had used a -RUN after your -SETs your original would have worked fine (apart from the missing '.') because it would have forced the evaluation of the SETs before starting the REPEAT loop. Much simpler than .EVAL
-RUN adds nothing for variables that are already set by -SET.
I suggest you play by the book.
Indexing, using the construct "&base.&index", is documented.
But "&base&index.EVAL", or even "&base.&index.EVAL", is not documented as a means to reference "indexed" variables, and its semantic interpretation may vary with the release.
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
I take it it is still asking for the &SEL_A variable? If so, since you're not really using that variable, try to do a -SET &SEL_A = ''; in the very top of your fex. That way the var is known and no prompting will take place. And then hope the rest of the fex still works ...
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007