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
 

 

Passing record count as parm to other step

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Passing record count as parm to other step
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10232
Location: italy

PostPosted: Fri May 21, 2010 6:11 pm    Post subject: Reply to: Passing record count as parm to other step
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 Moderator


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

PostPosted: Fri May 21, 2010 10:46 pm    Post subject:
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    Post subject:
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 Moderator


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

PostPosted: Fri May 21, 2010 11:26 pm    Post subject:
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:

http://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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Record Not found in AlX but record re... mukun264 COBOL Programming 7 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Display FTP Session Count within TSO Yolanda Harvey TSO/ISPF 3 Fri Mar 10, 2017 10:31 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts To Merge mutliple records into a sing... anandgbe DFSORT/ICETOOL 6 Wed Feb 22, 2017 8:49 am


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