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

Formatting Output file using OUTREC


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pg.kkreddy

New User


Joined: 28 Apr 2005
Posts: 1

PostPosted: Wed Jul 30, 2008 6:44 pm
Reply with quote

I have one VSAM file.
Length : 1600 RECFM = FB
I have to build the key using 5 fields.

For example first 1-24 & 44:23 using this I need to build the Outfile.

Code:
                                                   
//PS010    EXEC PGM=SORT                         
//SORTIN    DD DSN=INPUT FILE,DISP=SHR
//SORTOUT   DD DSN=OUTFILE,                   
//             DISP=(,CATLG,DELETE),                 
//             SPACE=(CYL,(10,10))
//SYSIN     DD *                                         
  OPTION COPY                                       
  OUTREC FIELDS=(1:1,2,3:3,6,9:9,10,19:44,23:42:...)
/*                               
//SYSOUT    DD SYSOUT=*


My concerns is how to mention the remaining fields?

KK.
Back to top
View user's profile Send private message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Wed Jul 30, 2008 7:31 pm
Reply with quote

HI,

Can u just display sample input and required output.

Regards
R KARTHIK
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Jul 30, 2008 10:47 pm
Reply with quote

Quote:
My concerns is how to mention the remaining fields?


That depends on what you want to do with the remaining fields. Do you want them in the output records after the keys, or do you want to do something else with them? You need to tell us how the output records should look before we can tell you how to code the OUTREC statement to make them look that way.

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

Use [URL] BBCode for External Links
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
Search our Forums:

Back to Top