Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Syncsort ? to use E15 & E35 Exit Routines together in a

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Swami-gs

New User


Joined: 27 Apr 2007
Posts: 20
Location: Chennai

PostPosted: Fri Dec 05, 2008 11:10 am    Post subject: Syncsort ? to use E15 & E35 Exit Routines together in a
Reply with quote

Hello,

I have a requirement wherein I have to run two exit routines inside a single SYNCSORT step.

I have some omit conditions in my syncsort. I need to display the input controls and output controls of that step separately in the SYSOUT.

But technically If I use E35, then it does not include all the Input records.

If i use E15, it is not giving me exact output records.

Is there any way we can do this?

Thanks
Swami
Back to top
View user's profile Send private message

Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2285
Location: @my desk

PostPosted: Fri Dec 05, 2008 11:12 am    Post subject:
Reply with quote

Swami,

Syncsort questions are discussed in JCL forum and not in DFSORT forum. Can you explain with examples what exactly you are trying to do?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Dec 05, 2008 11:15 am    Post subject:
Reply with quote

Hello,

If you post some sample input, the desired output from that input, and the rules to be applied, someone may have a suggestion.

Why do you believe you need either or both exits?
Back to top
View user's profile Send private message
Swami-gs

New User


Joined: 27 Apr 2007
Posts: 20
Location: Chennai

PostPosted: Fri Dec 05, 2008 1:13 pm    Post subject: Reply to: Syncsort ? to use E15 & E35 Exit Routines toge
Reply with quote

Hello,

Example:

Input Records have 100 records.

Using some OMIT condition in my Sort, I am removing 10 records.

So my output file will have 90 records.

But, basically I need to print Input controls and Output Controls as below in the SYSOUTS.

Input controls:
Record counts :100
Dollars amts: 550000


Output controls:
Record counts :90
Dollars amts: 400000

If I use E35, I can calculate only for 90 records.
If I use E15, I can calculate for all the 100 records.

Thanks
Swami
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Dec 05, 2008 2:17 pm    Post subject:
Reply with quote

Hello,

If you are willing to write 2 cobol modules for the exits, i'd suggest simply writing the requirement entirely in cobol with an internal sort using the input procedure/outpur procedure approach.

This gives only 1 piece of "code" to maintain rather than 3.
Back to top
View user's profile Send private message
Swami-gs

New User


Joined: 27 Apr 2007
Posts: 20
Location: Chennai

PostPosted: Fri Dec 05, 2008 2:30 pm    Post subject: Reply to: Syncsort ? to use E15 & E35 Exit Routines toge
Reply with quote

Thats a good idea. but the program which I am going to change is existing program used in various part of the system.

So, its a common program used across. Each and every place we have different Omit/Include condition been given.

Practically I cannot combine them.

It is fine with me, if I write two programs and execute it separately.

Thanks
Swami
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2285
Location: @my desk

PostPosted: Fri Dec 05, 2008 3:44 pm    Post subject:
Reply with quote

Swami,
Quote:
But, basically I need to print Input controls and Output Controls as below in the SYSOUT.

I m trying to understand this statement. Can you please explain this a bit more.
Back to top
View user's profile Send private message
Swami-gs

New User


Joined: 27 Apr 2007
Posts: 20
Location: Chennai

PostPosted: Fri Dec 05, 2008 4:13 pm    Post subject: Reply to: Syncsort ? to use E15 & E35 Exit Routines toge
Reply with quote

Arun,

But, basically I need to print Input controls and Output Controls as below in the SYSOUTS.

I have one syncsort step.
ex: sort fields=copy
OMIT=(10,2,CH,C'23')
MODS E35=(Z1234BIG,100,MODLIB,N)

Input record counts: 100

Omitted records : 10

Output records : 90

So, with this condition, If i use E35, then it would pass the records after satisfying the sort conditions. in our case only 90 records will be passed. So over here inside the Z1234BIG, I will not be knowing the no. of input records coming in.

So, if i use E15, it passes the records first to Exit routine and then to Syncsort.

In order to print Input record counts and Output record counts. I need to run separate programs and that is possible thru E15 and E35.

I am not sure about the syntax of giving E15 and E35 in a single syncsort parm.

Thanks
Swami
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Dec 05, 2008 8:49 pm    Post subject:
Reply with quote

Hello,

Quote:
I am not sure about the syntax of giving E15 and E35 in a single syncsort parm.
You can have both in the same execution however - they operate at different times (before/after) in the sort.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts EXIT or RETURN cvnlynn CLIST & REXX 18 Wed Jul 19, 2017 2:50 am
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 7 Sat Jan 21, 2017 4:02 am
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us