View previous topic :: View next topic
|
Author |
Message |
Mazahar
New User
Joined: 11 Dec 2007 Posts: 82 Location: hyderabad
|
|
|
|
Hello,
Can any one please tell me if it is possible with sort
I need to find the number of records in a file with a sort, then i need to pass the count as parm to other step in same JCL.
Ex :- I have a FB files with lrecl 10 which is having some records
Code: |
1234567891
1234567892
1234567893
1234567894
1234567895 |
I need find the count of the records, and i need to pass the count as parm to other step, here the count is 5, this 5 needs to be passed to other step
Code: |
// SET COUNT='00000005' |
Can you please suggest |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
we cannot suggest anything because it cannot be done ...
change the process in order to read the count from a dataset! |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Perhaps it could be done by generating a job for the internal reader with the required SET statement, and submitting that job.
Of course, we'd need details of the complete job to know for sure. |
|
Back to top |
|
|
Mazahar
New User
Joined: 11 Dec 2007 Posts: 82 Location: hyderabad
|
|
|
|
Frank,
Thank You. i just need to pass the count as parm to a PLI where i will be generating some report and doing some manupulations depending on the count i pass...
Quote: |
we'd need details of the complete job to know for sure. |
can you please tell me what are the details you need. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
I need to see the complete JCL for the step that will use the SET statement.
Also, are you allowed to submit a Job to the internal reader (some shops don't allow that)?
However, I think Enrico's suggestion of putting the count in a data set that your PL/I program can read is probably a better approach. You can generate the count record using the method described in the "Display the number of input or output records" Smart DFSORT Trick at:
www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000094 |
|
Back to top |
|
|
|