View previous topic :: View next topic
|
Author |
Message |
Swami-gs
New User
Joined: 27 Apr 2007 Posts: 20 Location: Chennai
|
|
|
|
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 |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Swami-gs
New User
Joined: 27 Apr 2007 Posts: 20 Location: Chennai
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Swami-gs
New User
Joined: 27 Apr 2007 Posts: 20 Location: Chennai
|
|
|
|
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 |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
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 |
|
|
Swami-gs
New User
Joined: 27 Apr 2007 Posts: 20 Location: Chennai
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|