IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

AQT extract data


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
venkyca

New User


Joined: 02 Mar 2007
Posts: 1
Location: minnesota

PostPosted: Thu Mar 22, 2007 6:57 am
Reply with quote

Hi,

I have to extract a query result table to a text or csv file with a specified record length given by a record layout. I can extract data but the record length is gretaer than the required output record length because of some extra spaces or nulls in between fields.

I have a fixed record format for the ouput file. How do I specify the exact length in AQT so that it matches the target record layout and that should not conatin any extra characters in between.

Thanks
VK
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Mar 22, 2007 7:57 am
Reply with quote

Use a Programming langualge that allowes you to "exact length in AQT so that it matches the target record layout and that should not conatin any extra characters in between".
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Mar 22, 2007 8:03 am
Reply with quote

Hello,

Are you creating the "output" file on the PC? If i recall correctly, AQT is pc-based with the ability to access database tables on multiple platforms (win-based, unix, and mainframe).

What you may have is the full size of the data - including trailing blanks.

Where are the extra characters? Please post what you are getting and what you'd prefer. Also, please post the attributes of the output file.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top