Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Formatting Output file using OUTREC

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Formatting Output file using OUTREC
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    Post subject: Reply to: Formatting Output file using OUTREC
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 Moderator


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

PostPosted: Wed Jul 30, 2008 10:47 pm    Post subject:
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:

www.ibm.com/servers/storage/support/software/sort/mvs/srtmpub.html
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us