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

Passing record count as parm to other step


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

New User


Joined: 11 Dec 2007
Posts: 82
Location: hyderabad

PostPosted: Fri May 21, 2010 6:08 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri May 21, 2010 6:11 pm
Reply with quote

we cannot suggest anything because it cannot be done ...
change the process in order to read the count from a dataset!
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: Fri May 21, 2010 10:46 pm
Reply with quote

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
View user's profile Send private message
Mazahar

New User


Joined: 11 Dec 2007
Posts: 82
Location: hyderabad

PostPosted: Fri May 21, 2010 11:13 pm
Reply with quote

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
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Fri May 21, 2010 11:26 pm
Reply with quote

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
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts To get the count of rows for every 1 ... DB2 3
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
Search our Forums:

Back to Top