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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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