MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Difference between INREC and OUTREC in SORT

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
Vish
Beginner


Joined: 17 Sep 2003
Posts: 21
Topics: 9
Location: Mumbai India

PostPosted: Wed Sep 17, 2003 4:35 pm    Post subject: Difference between INREC and OUTREC in SORT Reply with quote

Hi Friends,
What is the exact difference between INREC and OUTREC statements in SORT ?

Thanks,
Vish
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Wed Sep 17, 2003 5:07 pm    Post subject: Reply with quote

INREC is processed BEFORE the records are sorted, merged or copied. OUTREC is processed AFTER the records are sorted, merged or copied.

See the following for a Figure that shows the order in which DFSORT statements and parameters are processed:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICECA109/1.5.4?DT=20020722140254#FIGSTMTSEQ
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Vish
Beginner


Joined: 17 Sep 2003
Posts: 21
Topics: 9
Location: Mumbai India

PostPosted: Wed Sep 17, 2003 9:13 pm    Post subject: Reply with quote

Hi Frank Yaeger,

Thanks a lot for your quick response.

Thanks a million
Vish
_________________
Vish
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu Sep 18, 2003 5:44 am    Post subject: Reply with quote

vish,

For SORT FIELDS=COPY,there is no difference between INREC and OUTREC. For a sort or merge, the INREC statement is processed BEFORE sorting or merging occurs whereas the OUTREC statement is processed AFTER sorting or merging occurs.

In simple terms INREC is the layout that you want the sort program to process. OUTREC is the layout which you want to get from the sort program.

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Thu Sep 18, 2003 9:50 am    Post subject: Reply with quote

Quote:
For SORT FIELDS=COPY,there is no difference between INREC and OUTREC.


True, unless BOTH INREC and OUTREC are used. Wink
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group