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     comma in -READ variable value

Read-Only Read-Only Topic
Go
Search
Notify
Tools
comma in -READ variable value
 Login/Join
 
Member
posted
i am reading some column value in a variable of PDF report:
-READ HOLDTBL &COL1.A20;

The string value from COL1, which I am saving is: AA,BB,CC

But when i print the variable value, it shows only 'AA'. I changed the comma using ASCII char &|#44, but in PDF it prints same '&|#44' in place of comma. How to show complete string as 'AA,BB,CC'?



WebFOCUS Versions using 7.1; Platform: Windows XP; Output Format: PDF.
 
Posts: 16 | Registered: September 07, 2007Report This Post
Virtuoso
posted Hide Post
Abhi

What is the script you use to create the HOLD file? (please post it)
The string has 3 fields? so you want to read these 3 fields in separate variables?

If so change the command into

-READ HOLDTBL, &COL1 &COL2 &COL3

The comma after holdtbl indicates it is a comma delimited file.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Member
posted Hide Post
These are not three fields. This is single string value reading from single column.

This message has been edited. Last edited by: Abhi,



WebFOCUS Versions using 7.1; Platform: Windows XP; Output Format: PDF.
 
Posts: 16 | Registered: September 07, 2007Report This Post
Virtuoso
posted Hide Post
Abhi,

If I run the following code:
FILEDEF IN DISK IN.TXT (LRECL 20 RECFM V
-RUN
-WRITE IN AA,BB,CC,DD
-WRITE IN So this is text
-RUN
-READ IN &COL.20
-TYPE &COL
-READ IN &COL.20
-TYPE &COL

Then the result is exactly as I expect:
AA,BB,CC,DD
So this is text

Please include your code so we can see what's wrong, because your short descriptiuon of the problem is not enough to go on.

GamP


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Member
posted Hide Post
GamP, FrankDutch has right approach (hope you dont mind Frank). Read it in as comma delimited like he said and add the line following his:
-READ HOLDTBL, &COL1 &COL2 &COL3
-SET ALLTHREE = &COL1||','||&COL2||','||&COL3 ;
YOU SHOULD SEE THE VALUES OF ALL THEEE SEPARATED BY COMMAS. YOU CAN CONTROL SPACING IN THERE USING PARENS AND WEAK CONCATENATION.
 
Posts: 29 | Registered: March 30, 2007Report 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     comma in -READ variable value

Copyright © 1996-2020 Information Builders