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     [close] How *NOT* to output the length of AnV field to a hold file?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[close] How *NOT* to output the length of AnV field to a hold file?
 Login/Join
 
Platinum Member
posted
When I print out an ALPHA hold file with AnV fields, the field always includes the length, like

00003ABC

When I -READ it to a variable I had to remove the length part.

Is there any SET parameter that can disable the output of the length?

Thanks.

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


7.66 and 7.704
System: Windows / AIX / Linux
Output: Mostly HTML, with some PDF, Excel and Lotus(!)
 
Posts: 147 | Location: Toronto (GTA) | Registered: May 25, 2005Report This Post
Virtuoso
posted Hide Post
There is no such a parameter because, if the field has a variable length, the file must necessarily indicate how many characters to read before reaching the next field in the row.

You can however use -READFILE instead which takes care of all of that for you nicely. You are not even "forced" to use ALPHA output anymore Wink

DEFINE FILE CAR
CARV/A20V = CAR;
COUNTRYV/A20V = COUNTRY;
END
TABLE FILE CAR
PRINT CARV AND COUNTRYV AND SEATS
WHERE RECORDLIMIT EQ 1
ON TABLE HOLD AS HCAR
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE SET ASNAMES ON
END
-RUN

-READFILE HCAR

-TYPE CARV -> &CARV
-TYPE COUNTRYV -> &COUNTRYV
-TYPE SEATS -> &SEATS




-READFILE is one of my favourite features in 7.7.x.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Expert
posted Hide Post
You can, and I do this often, -READ FileName .&LenVar.6. and use &LenVar in your next -READ &Var1.&LenVar.EVAL. statement.
&LenVar ..... 000003
&Var1 ....... ABC
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Platinum Member
posted Hide Post
Great solutions, thanks !


7.66 and 7.704
System: Windows / AIX / Linux
Output: Mostly HTML, with some PDF, Excel and Lotus(!)
 
Posts: 147 | Location: Toronto (GTA) | Registered: May 25, 2005Report 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     [close] How *NOT* to output the length of AnV field to a hold file?

Copyright © 1996-2020 Information Builders