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
 
PS file data should be passed as symbolic paramter to PROC

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
d_sarlie

New User


Joined: 22 Apr 2008
Posts: 42
Location: coimbatore

PostPosted: Tue Oct 03, 2017 5:18 am    Post subject: PS file data should be passed as symbolic paramter to PROC
Reply with quote

Hi,

Input file-1 : R040
Input file-2 : R050
Input file-3 : R060

In the sort step the input file could be one of it which is mentioned below. I need to replace the sort in file with the qualifiers R040,R050 OR R060 from the above mentioned input file.

M.S760DP.&STEP..SORTOUT

I want to read the input file and replace it with appropriate values mentioned below. Can you please highlight the concept with which I could do.

M.S760DP.R040.SORTOUT
M.S760DP.R050.SORTOUT
M.S760DP.R060.SORTOUT

I checked for post I didn't see anything which match my requirement.
Can somebody help me with this.
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1894
Location: UK

PostPosted: Tue Oct 03, 2017 5:34 am    Post subject:
Reply with quote

apart from the fact that they are data sets and not files your requirement is totally unclear. Please show an example of what you mean not justg isolated data set names. And use the code tags.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Tue Oct 03, 2017 5:35 am    Post subject:
Reply with quote

Write a program in the language of your choice to read the sequential data set (the only files on a mainframe are in Unix System Services or on tape) and generate a job using the data set names you want; submit this job into the internal reader. You CANNOT modify the JCL of the executing job once it has gone through the converter / interpreter -- so what you want CANNOT be done with a single job.
Back to top
View user's profile Send private message
d_sarlie

New User


Joined: 22 Apr 2008
Posts: 42
Location: coimbatore

PostPosted: Tue Oct 03, 2017 5:40 am    Post subject:
Reply with quote

Robert Sample wrote:
submit this job into the internal reader.



I think I got to come across this content. But I didn't know how to submit the job into internal reader
Back to top
View user's profile Send private message
d_sarlie

New User


Joined: 22 Apr 2008
Posts: 42
Location: coimbatore

PostPosted: Tue Oct 03, 2017 5:42 am    Post subject:
Reply with quote

Nic Clouston wrote:
And use the code tags.


Last time in one of the post you asked me to post the code with code tags.
May be I am 9+ years of experienced I don't understand how you want me to post the code.
Back to top
View user's profile Send private message
d_sarlie

New User


Joined: 22 Apr 2008
Posts: 42
Location: coimbatore

PostPosted: Tue Oct 03, 2017 5:52 am    Post subject:
Reply with quote

I want to run the same job multiple times.I am not interested in creating multiple jobs.The client list is not the same.For each run it will be different.

I tried to get R040,R050 AND R060 from scheduler and pass it as symbolic parameter to the JCL.
I am unable to get that because during JCLPREP usage of this as Scheduler parameter is restricted.

R040 --> M.S760DP.R040.SORTOUT (file which has list of client for schedule-1)


SCHEDULE-1
JOB-1
JOB-2
JOB-3

R050 --> M.S760DP.R050.SORTOUT (file which has list of client for schedule-2)

SCHEDULE-2
JOB-1
JOB-2
JOB-3


R060 --> M.S760DP.R060.SORTOUT (file which has list of client for schedule-1)

SCHEDULE-3
JOB-1
JOB-2
JOB-3
Back to top
View user's profile Send private message
d_sarlie

New User


Joined: 22 Apr 2008
Posts: 42
Location: coimbatore

PostPosted: Tue Oct 03, 2017 7:03 am    Post subject:
Reply with quote

Am I in the right forum.If so can somebody help me with the information.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Tue Oct 03, 2017 7:21 am    Post subject:
Reply with quote

Quote:
Am I in the right forum.If so can somebody help me with the information.
People who answer on this forum are volunteers -- as in, they answer if they have the knowledge, the interest in answering, and the time to respond. It is by no means unusual for hours or days or weeks or months to pass between the time a question is posted and the time it is answered. Prompting for answers like this has the negative result of having those who could respond deciding to not respond to avoid the hassle.

Quote:
I am not interested in creating multiple jobs.
Then go find another forum that deals in miracles. This forum is for IBM mainframes, and on IBM mainframes JCL is fixed once the converter / interpreter has run against the JCL and cannot be changed, so you CANNOT read a data set and use the input of that data set to change the currently executing JCL. It flat out cannot be done, period.
Back to top
View user's profile Send private message
d_sarlie

New User


Joined: 22 Apr 2008
Posts: 42
Location: coimbatore

PostPosted: Tue Oct 03, 2017 8:35 am    Post subject:
Reply with quote

Quote:
Then go find another forum that deals in miracles


Thanks for confirming that I will not be able to do anything on this based on JCL.

The Forum I meant is JCL forum or some other forum of IBM.
Back to top
View user's profile Send private message
d_sarlie

New User


Joined: 22 Apr 2008
Posts: 42
Location: coimbatore

PostPosted: Tue Oct 03, 2017 8:51 am    Post subject:
Reply with quote

In my case I am been asked to create 5 streams .A stream has 73 jobs.I need to create 365 jobs which would include Coding time,Testing,Migration ,scheduling,Transmission,support.

Can somebody suggest me some other solution which I could use.
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 574
Location: The Universe

PostPosted: Tue Oct 03, 2017 8:58 am    Post subject:
Reply with quote

d_sarlie wrote:
Am I in the right forum.If so can somebody help me with the information.

Possibly, though I suspect what you seem you want to do is not strictly "JCL."

There are programs collectively called "scheduler" prpgrams. Some of these programs can take a data set containing "JCL," perhaps modify it in some way, and submit it to the system to run. I do not use any of these programs, so I am ignorant of their details and capabilities.

Mr. Clouston suggested you use "code tags.", which you do not appear to understand. This web site, along with many others, is run using software known as phpbb software. Use your preferred search site to lookup phpbb codes. Mr. Clouston is simply asking you to use code in your response that directs directs the phpbb software ...
Code:
... emit a box using a font with fixed width letters.


Mr. Sample, in another response, directed you to use a program written in a computer language of your choice to prepare JCL written to your requirements and submit it using an "internal reader," which you do not seem to understand. An "internal reader" is just an ordinary sequential data set defined using JCL DD statement like this -
Code:
//ddname DD SYSOUT=(class,INTRDR)
"class" is a single letter that specifies the default message class for the jobs that are submitted on the internal reader. When your program writes data to an "internal reader" data set, the system operates as though the job is being entered on a real card reader. "Internal readers" are very common; scheduler programs use them to submit jobs, and when you submit a batch job from your TSO session it is submitted via an internal reader.
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 170
Location: Switzerland

PostPosted: Tue Oct 03, 2017 1:38 pm    Post subject:
Reply with quote

Quote:
I want to run the same job multiple times.I am not interested in creating multiple jobs

I take that to mean that you are running the same JCL multiple times with different input datasets? If that is the case, then I would look at a JCL procedure, which can be inline or in a user-defined dataset. All nicely described in the JCL manual.
Back to top
View user's profile Send private message
d_sarlie

New User


Joined: 22 Apr 2008
Posts: 42
Location: coimbatore

PostPosted: Thu Oct 05, 2017 11:02 pm    Post subject:
Reply with quote

I checked INTRDR .It is not permitted in our application.

Is there something else you could do.Can you please suggest.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1777
Location: Bloomington, IL

PostPosted: Thu Oct 05, 2017 11:06 pm    Post subject:
Reply with quote

Write the program in Rexx, run it under background TSO, and use the SUBMIT command.
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 574
Location: The Universe

PostPosted: Fri Oct 06, 2017 1:49 am    Post subject:
Reply with quote

d_sarlie wrote:
I checked INTRDR .It is not permitted in our application.

Is there something else you could do.Can you please suggest.

There is one, and only one method for a program running in, for example, job A, to submit another job, say job B. That interface is an internal reader. If you cannot use this interface, what you propose is not possible. Period. End of story.
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1806
Location: NY,USA

PostPosted: Fri Oct 06, 2017 1:57 am    Post subject:
Reply with quote

and should be locked...
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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 opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 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 Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

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