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

Difference between OUTFIL and OUTREC


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

New User


Joined: 26 Apr 2005
Posts: 87
Location: Hyderabad

PostPosted: Thu Jul 09, 2009 7:49 pm
Reply with quote

Hi Friends,

Can anyone explain me the difference between OUTFIL and OUTREC statements?

While testing I can see that the output of

SORT FIELDS=(26,08,CH,A)
SUM FIELDS=NONE
OUTREC FIELDS=(26,8)
INCLUDE COND=(41,10,CH,EQ,C'MAINFRAMES')

is different from

SORT FIELDS=(26,08,CH,A)
SUM FIELDS=NONE
OUTFIL OUTREC=(26,8),INCLUDE=(41,10,CH,EQ,C'MAINFRAMES')

The first sort card gave 10 more records.

Thanks for your time.

Regards
Tanden
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: Thu Jul 09, 2009 8:48 pm
Reply with quote

For your first case, the functions are processed in this order:

INCLUDE
SORT/SUM
OUTREC

For your second case, the statements are executed in this order:

SORT/SUM
OUTFIL INCLUDE
OUTFIL OUTREC

The different order of processing for INCLUDE (before SORT/SUM in the first case and after SORT/SUM in the second case) is the reason for the difference in the number of output records.

See the following for complete details on the order in which DFSORT processes its various functions:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA30/1.5.4?DT=20080528171007#FIGSTMTSEQ
Back to top
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Thu Jul 09, 2009 8:54 pm
Reply with quote

In this case I believe a more efficient way would be to use INREC and INCLUDE to remove extra records and extra bytes per records before the sort.
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 Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts OUTFIL with SAVE option DFSORT/ICETOOL 7
No new posts Timestamp difference and its average ... DB2 11
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts question on Outrec and sort #Digvijay DFSORT/ICETOOL 20
Search our Forums:

Back to Top