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

Clarification on execution of control statements


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

Active User


Joined: 18 Oct 2005
Posts: 182
Location: Luton UK

PostPosted: Fri Feb 03, 2006 8:36 pm
Reply with quote

Hi All

In My job iam using sort, just i want to know the order in which the statements will be executed.
iam using in sysin as
outrec fields.................
sort fields copy.......
omit statement................

Here i want to know first the input records are reformatted and eliminated by omit condition and copied to output file.

or
it will eliminate the input records based on the omit conditon and then reformats and copies to output file..

Please let me know the order of execution of statements

Thanks In advance
jai
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: Fri Feb 03, 2006 9:48 pm
Reply with quote

The order is:

Code:

  OMIT statement processing
  SORT statement processing
  OUTREC statement processing


The records are eliminated before copying and then reformatted.

The following figure in "z/OS DFSORT Application Programming Guide" shows the order of processing for DFSORT:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA10/FIGSTMTSEQ?SHELF=&DT=20050222160456&CASE=&ScrollTOP=FIGSTMTSEQ#FIGSTMTSEQ
Back to top
View user's profile Send private message
rajandhla

Active User


Joined: 18 Oct 2005
Posts: 182
Location: Luton UK

PostPosted: Fri Feb 03, 2006 9:55 pm
Reply with quote

Thanks For prompt reply

Regards
Jai
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 Capturing Job Execution Information All Other Mainframe Topics 3
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Help Control-R IBM Tools 2
No new posts Try to understand IMS control block IMS DB/DC 0
Search our Forums:

Back to Top