View previous topic :: View next topic
|
Author |
Message |
d_sarlie
New User
Joined: 22 Apr 2008 Posts: 42 Location: coimbatore
|
|
|
|
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 |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
d_sarlie
New User
Joined: 22 Apr 2008 Posts: 42 Location: coimbatore
|
|
|
|
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 |
|
|
d_sarlie
New User
Joined: 22 Apr 2008 Posts: 42 Location: coimbatore
|
|
|
|
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 |
|
|
d_sarlie
New User
Joined: 22 Apr 2008 Posts: 42 Location: coimbatore
|
|
|
|
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 |
|
|
d_sarlie
New User
Joined: 22 Apr 2008 Posts: 42 Location: coimbatore
|
|
|
|
Am I in the right forum.If so can somebody help me with the information. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
d_sarlie
New User
Joined: 22 Apr 2008 Posts: 42 Location: coimbatore
|
|
|
|
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 |
|
|
d_sarlie
New User
Joined: 22 Apr 2008 Posts: 42 Location: coimbatore
|
|
|
|
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 |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
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 |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 712 Location: Denmark
|
|
|
|
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 |
|
|
d_sarlie
New User
Joined: 22 Apr 2008 Posts: 42 Location: coimbatore
|
|
|
|
I checked INTRDR .It is not permitted in our application.
Is there something else you could do.Can you please suggest. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Write the program in Rexx, run it under background TSO, and use the SUBMIT command. |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
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 |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3048 Location: NYC,USA
|
|
|
|
and should be locked... |
|
Back to top |
|
|
|