Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Clarification on execution of control statements

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
Author Message
rajandhla

Active User


Joined: 18 Oct 2005
Posts: 184
Location: Hyderabad

PostPosted: Fri Feb 03, 2006 8:36 pm    Post subject: Clarification on execution of control statements
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
References
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 4684
Location: San Jose, CA

PostPosted: Fri Feb 03, 2006 9:48 pm    Post subject:
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:

http://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: 184
Location: Hyderabad

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

Thanks For prompt reply

Regards
Jai
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1