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     read multiple columns

Read-Only Read-Only Topic
Go
Search
Notify
Tools
read multiple columns
 Login/Join
 
Platinum Member
posted
i'm working on using -READ to get the columns from a query that returns 1 record. i've got:

-READ MYFILE &COL1.I4. &COL2.A50. &COL3.A50.

It seems to be concatenating the first couple cols. First col is an integer, the other two are A50. I know I'm close, but I'm not experienced with the READ statement.


Thanks.

Mark
WF 7.6 Windows
 
Posts: 150 | Registered: July 26, 2007Report This Post
Platinum Member
posted Hide Post
just to clarify, i'm able to get this working it seems, but the A50 cols are right padded...very annoying.


Thanks.

Mark
WF 7.6 Windows
 
Posts: 150 | Registered: July 26, 2007Report This Post
Master
posted Hide Post
Use HOLD/SAVE FORMAT ALPHA and read everything as .Axx.




Scott

 
Posts: 865 | Registered: May 24, 2004Report This Post
Virtuoso
posted Hide Post
just to clear up something - when you are doing a DM -READ, it does not know reading an integer from reading and alpha. It's just reading a flat file which must ALWAYS conform to a fixed layout. Best solution as Texas says, is to read everything as alpha. If the value is '1234', wherever you're using the &COL1 variable, it's
going to put 1234 regardles of whether you call it a number or a variable. if you need it in some specific format, say a date, for later calculations, you can use additional DM commands with functions to set it correctly. Same with alpha to integer (or floating)


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, 2007Report This Post
Master
posted Hide Post
It is also wise to make sure that your hold file contains what you think it does. Use ?FF MYFILE to get the file description. If you did computes in the fex to create the hold file, the fields in the computes are also written to the file. To prevent this use SET HOLDLIST = PRINTONLY.


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report This Post
Platinum Member
posted Hide Post
ok, thanks everyone for your responses.


Thanks.

Mark
WF 7.6 Windows
 
Posts: 150 | Registered: July 26, 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     read multiple columns

Copyright © 1996-2020 Information Builders