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.
Originally posted by bug: if &A=['abc','def'], and I code: -SET &C=&A | &B; The program will blow up because webfocus interprets it as -SET &C='abc','def' | &B.
When it "blows up", what's your error message? What code is used to set &A and &B in the first place?
Note that the space before the | is essential; without the intervening space, the | just acts as a name delimiter, rather than a catenation operator.
-SET &ECHO=ALL;
-SET &xA='[''123'',''456'']';
-SET &xB='[''abc'',''def'']';
CURRENTLY DEFINED & VARIABLES STARTING WITH 'x':
&xA = ['123','456']
&xB = ['abc','def']
-? &x
-SET &xC= ['123','456'] | ['abc','def'] ;
CURRENTLY DEFINED & VARIABLES STARTING WITH 'x':
&xA = ['123','456']
&xB = ['abc','def']
&xC = ['123','456']['abc','def']
-? &x
-SET &xC= ['123','456'] ['abc','def'] ;
0 ERROR AT OR NEAR LINE 34 IN PROCEDURE _ADHOCRQFOCEXEC *
(FOC261) EXPRESSION IS INCOMPLETE BECAUSE AN OPERATION IS MISSING
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
remember that single quote marks embedded in a string must be represented by two single quote marks. WebFOCUS treats two contiguous quotes within a quote-delimited string as a single literal quote. There's q pretty lengthy discussion of this in the "Developing Reporting Applications" manual under Customizing a Procedure With a Variable.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
Seems that's just an execution echo, not the raw fex code. When showing a -SET statement, the echo mechanism shows the values rather than &var names on the RHS. Cf. my earlier response.
Why a problem with MRE and not for self-service? -- I wonder whether MRE's transcription process could cause | to be translated to something else ...
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
Their are some characters that cause problems within Webfocue. I've encountered this same problem in our Self service applications. We basically take the ebcdic notation and convert code to another...allowable code. So you'll need the ebcdic chart for this method. Below is an example of converting a apostrophes to a graves.
Good Luck,
Timothy
-* work-around for illegal special characters in a display amper-variable:
-* translate apostrophes to grave` and insert pipes after ampersands:
AND COMPUTE INCHNAMX/A40=CTRAN(40,INCHNAM,39,96,'A40'); NOPRINT
AND COMPUTE ZINCHNAM/A40=CTRAN(40,INCHNAMX,38,126,'A40');
AND COMPUTE DOWNTOX/A20= CTRAN(20,DOWNGRDTO,39,96,'A20'); NOPRINT
AND COMPUTE ZDOWNTO/A20= CTRAN(20,DOWNTOX,38,126,'A20');
Prod: WebFOCUS 7.6.10 MRE Oracle/Sybase Test: DevStudio 7.6.6 WF Server 7.6.6 Report Caster 7.6.6 Web Server - Tomcat MS Windows XP SP2 Output: HTML, Excel 2000 , PDF, CSV, DOC