Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 10326
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
No new posts Where is output from PARM ABEXIT (SNA... packerm CA Products 3 Thu Sep 28, 2017 4:06 pm
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 5 Fri Sep 22, 2017 7:08 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us