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

Identifying whether DFSORT or COBOL performed I/O


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

New User


Joined: 19 Aug 2009
Posts: 19
Location: India

PostPosted: Tue Sep 08, 2009 8:21 am
Reply with quote

Its known that usage of a COBOL sort verb invokes DFSORT internally. At the same time even if FASTSRT compiler options is used the I/O is being taken care by the E15 and E35 exit routines of DFSORT if INPUT & OUTPUT PROCEDURE is used along with the SORT verb in COBOL.

1. Now how can I identify from the DFSORT messages that I/O was performed by COBOL exit routines or DFSORT itself??

2. Can we find out the DFSORT SORT CARD internally used which is associated with the corresponding COBOL SORT verb?

Thanks in advance..
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: Tue Sep 08, 2009 9:14 pm
Reply with quote

Add this to your COBOL JCL:

Code:

//DFSPARM DD *
  OPTION MSGPRT=ALL,LIST,MSGDDN=MYMSGS
/*
//MYMSGS DD SYSOUT=*


1. If COBOL performs the input, you will see message ICE089I in MYMSGS. If DFSORT performs the input, you will see message ICE088I in MYMSGS.

If COBOL performs the output, you will see message ICE091I in MYMSGS. If DFSORT performs the output, you will see message ICE090I in MYMSGS.

2. The DFSORT SORT statement will be listed in MYMSGS.
Back to top
View user's profile Send private message
Singaram

New User


Joined: 19 Aug 2009
Posts: 19
Location: India

PostPosted: Tue Sep 08, 2009 10:40 pm
Reply with quote

Thanks a lot Frank...

Will definitely add this to the JCL and let you know for any updates.

Isnt there any performance degradation because of printing all the messages??
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: Tue Sep 08, 2009 10:50 pm
Reply with quote

Quote:
Isnt there any performance degradation because of printing all the messages??


Seems like an odd question given you asked "how to identify from the DFSORT messages" which assumes you want to print the DFSORT messages.

The real question should be: Is there a significant performance degradation from printing the messages.

If you are sorting a small number of records, then the CPU time would be small and the additional CPU time for printing the messages might be noticable, but shouldn't be significant given the small CPU time.

If you are sorting a large number of records, the added CPU time for printing the messages shouldn't be significant compared to the total CPU time.
Back to top
View user's profile Send private message
Singaram

New User


Joined: 19 Aug 2009
Posts: 19
Location: India

PostPosted: Wed Sep 09, 2009 1:17 am
Reply with quote

Im extremely sorry for an indirect way of asking the question..

Because I just got a doubt whether I can use it in all places in production to extract the messages or to use only in case of long running codes...

Once again Im sorry for an odd question will make sure not to repeat next time...

Thanks for the details
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
Search our Forums:

Back to Top