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 Profile Log in to check your private messages Log in
 
What's INREC and OUTREC in SORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
pretty
Currently Banned

New User


Joined: 13 Mar 2006
Posts: 6

PostPosted: Fri Nov 10, 2006 1:41 pm    Post subject: What's INREC and OUTREC in SORT
Reply with quote

What's INREC and OUTREC in SORT

WARNING: TITLE EDITED
Back to top
View user's profile Send private message

yogeswariumapathy

New User


Joined: 14 Sep 2005
Posts: 4

PostPosted: Fri Nov 10, 2006 2:35 pm    Post subject:
Reply with quote

Hi there

The main diff between inrec and outrec is:
inrec adds/del/formats the fields before the records are sorted.
outrec adds/del/formats the fields after the records are sorted

Sample Example using INREC:

Code:

//SYSIN DD *
  INREC FIELDS=(7:2,5)
  SORT FIELDS=(7,5,CH,A)
/*


Reformats the input record.moves the field in the 2 position of length 5 to the seventh position. sorts the reformatted record.

if u still have any doubts you can raise your doubt.
regards,
yogeswari
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: Fri Nov 10, 2006 10:10 pm    Post subject:
Reply with quote

pretty,

See Chapters 5 and 6 in "z/OS DFSORT: Getting Started". You can access it and all of the other DFSORT books online at:

www.ibm.com/servers/storage/support/software/sort/mvs/srtmpub.html

In fact, 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.
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 OC4 in SORT Mohan Kothakota DFSORT/ICETOOL 2 Tue Sep 12, 2017 6:30 pm
No new posts SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm
No new posts Changing sort Card Dynamically vickey_dw DFSORT/ICETOOL 5 Sat Aug 19, 2017 2:33 pm
No new posts SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am

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