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

Convrt unload file to o/p readable format file using SORT


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Radhika N

New User


Joined: 03 Jun 2010
Posts: 1
Location: Hyderabad

PostPosted: Sat Jun 12, 2010 11:43 pm
Reply with quote

I have unloaded data from multiple tables to a file. This unload file is not in a readable format, because some of the fields are declared in COMP, decimal etc.

How to convert this to a readable format file.
I want an output file in a readable format with each field separated by comma.


What is the SORT condition for this?
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: Sun Jun 13, 2010 12:04 am
Reply with quote

Hello and welcome to the forum,

Before anyone can help you, you have to provide the information needed to help you.

Post the recfm and lrecl of the input and output files (prefereably one that is only a few fields and covers the datatypes you need to deal with).

Show some sample input data and the output you want from that input.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Sun Jun 13, 2010 12:05 am
Reply with quote

If you can identify the individual fields in each record, yes, sort can do this.

Are you familiar with the inrec/outrec reformatting functions?
For instance: 10,4,BI,TO=ZD,LENGTH=8 which takes a four byte comp field beginning at the 10th byte of the file and converts it to an eight digit displayable decimal number.
The only trick is that you need to know exactly where each field is in order to convert it.

Sticking commas between the converted fields is very simple.
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Mon Jun 14, 2010 9:26 pm
Reply with quote

Radhika N,

Look at DB2 High performance unload utility which lets you unload the data into a readable format automatically along with delimiter between each field.

Check this link which explains in detail about the utility

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/INZUGC21/CCONTENTS
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Populate last day of the Month in MMD... SYNCSORT 2
Search our Forums:

Back to Top