Can you use part of a symbolic in JCL?



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Can you use part of a symbolic in JCL?

Postby SMILEY35 » Sat May 08, 2010 8:48 pm

Can you use part of a symbolic in JCL?

I need use just part of a symbolic passed to me in a file name. Is this possible?

SET FILE=ABCD.JOBID.TEST.FILE

THE JOBID IS THE ONLY THING THAT CHANGES FROM JOB TO JOB BUT I NEED TO ADD IT TO MY OUT FILE NAME FOR RESEARCH ISSUES.

SET JOBID=&FILE(5:5)

THIS IS WHAT I NEED SO I CAN ADD THE JOBID TO EACH OUT FILE. THE FILE IS BEING PASSED BY NDM AND THEY CAN SEEM TO FIND A WAY TO PASS ME THE FILE NAME AND PARSE OUT THE JOB NAME AND PASS IT TO USING FILE AGENT.
SMILEY35
 
Posts: 8
Joined: Sat May 08, 2010 5:25 am
Has thanked: 0 time
Been thanked: 0 time

Re: Can you use part of a symbolic in JCL?

 

Re: Can you use part of a symbolic in JCL?

Postby Robert Sample » Sat May 08, 2010 10:10 pm

JCL is not a programming language and you cannot do what you are wanting in a job stream. You could pass the file name as a parameter to a program, have the program extract the part of the file name you want, and submit a second job to the internal reader that contains that value.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 222 times

Re: Can you use part of a symbolic in JCL?

Postby SMILEY35 » Sat May 08, 2010 11:32 pm

i have a program that will write out the part of the dataset that i need but how will i get the value to step that will submut the second job?
SMILEY35
 
Posts: 8
Joined: Sat May 08, 2010 5:25 am
Has thanked: 0 time
Been thanked: 0 time

Re: Can you use part of a symbolic in JCL?

Postby dick scherrer » Sat May 08, 2010 11:57 pm

Hello,

how will i get the value to step that will submut the second job?
B whatecer means you choose to "find" the value and pass it along. . .

It is completely a waste of time to post the same question over and over changing the wording. . .

Get the value(s) from whatever the input (parm, file, etc). Generate a new job to submit with the values placed appropriately in the job that is to be submitted. Submit the new job.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post