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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Weird error on UNIX
 Login/Join
 
<Pietro De Santis>
posted
This fex:

-SET &ECHO=ALL;

-SET &A_ENV = IF 'aaadevzzz' CONTAINS 'dev' THEN 'D'
- ELSE IF 'aaadevzzz' CONTAINS 'test' THEN 'T'
- ELSE IF 'aaadevzzz' CONTAINS 'uat' THEN 'Q' ELSE 'P';

-SET &A_INT_DB_NAME = 'INT' || &A_ENV;

-TYPE &A_INT_DB_NAME

gives me an error when run on a UNIX server:

0 ERROR AT OR NEAR LINE 25 IN PROCEDURE _ADHOCRQFOCEXEC *
(FOC305) SPECIFIED LABEL NOT FOUND: P

When I run the same code on a Windows server, there is no error.
 
Report This Post
<Pietro De Santis>
posted
If I put the IF statement on one line, it works.

-SET &A_ENV = IF 'aaadevzzz' CONTAINS 'dev' THEN 'D' ELSE IF 'aaadevzzz' CONTAINS 'test' THEN 'T' ELSE IF 'aaadevzzz' CONTAINS 'uat' THEN 'Q' ELSE 'P';
 
Report This Post
Platinum Member
posted Hide Post
Welcome to the unix version of WebFOCUS, where all bets are off.

It's even weirder that that. If you save and close the fex so that it's no longer an "ad hoc" fex, it will probably run OK.

We have a case in on it.
 
Posts: 124 | Location: Lebanon, New Hampshire | Registered: April 24, 2003Report This Post
<Kalyan>
posted
Correct me if I am wrong but I use a semi colon to end continuation lines like this

-IF TESTVAL EQ 'A' THEN GOTO 1;
-ELSE IF TESTVAL EQ 'B' THEN GOTO 2;

Thanks,
Kalyan
 
Report This Post
Guru
posted Hide Post
The semi-colon is used to end the entire statement, not each line.
 
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003Report This Post
Member
posted Hide Post
This runs on our AIX 5.1 correctly with WF 5.3.2, yet fails with WF 4.3.6. I recall that the last version of character based focus that we used (ver 6.9) also failed with the same problem.
 
Posts: 26 | Location: Mercy College | Registered: May 06, 2003Report This Post
<Pietro De Santis>
posted
Oddly enough, when I had only the lines of code I originally posted, the fex failed. When I embedded the lines of code in an MRE fex, it worked.
 
Report This Post
Platinum Member
posted Hide Post
Pietro

What happens if you -INCLUDE the original continued lines in a non-MRE focexec?

We don't have MRE here, are using servlet on a unix platform, but are developing with devstudio on Winders.

Suzy
 
Posts: 124 | Location: Lebanon, New Hampshire | Registered: April 24, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders