Can we use symbolic parameter in sysin card?



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

Can we use symbolic parameter in sysin card?

Postby vishaljain » Wed May 15, 2013 2:08 pm

I have to define a VSAM file and the qualifiers should be different everytime I run the job, so I decided to use symbolic paramteres.But now the problem is that I have to define the cluster in a SYSIN card. I can't define it in my proc. Is there any way we can code symbolic parameters in sysin card?
vishaljain
 
Posts: 4
Joined: Mon Apr 29, 2013 3:59 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Can we use symbolic parameter in sysin card?

Postby steve-myers » Wed May 15, 2013 3:04 pm

Basically, no. There are two symbol classes.
  • JCL symbols. I think you mean JCL symbols in your query. There is a trick to pass JCL symbols to TSO commands, but I think this trick is inappropriate for DEFINE CLUSTER as a TSO command.
  • System symbols. IDCAMS can retrieve selected system symbols when the symbol is used in a command. See DFSMS AMS for Catalogs for your z/OS release.
  1. There is no such entity as a "VSAM file." There are "VSAM data sets" and "VSAM clusters."
  2. In MVS systems, a "file" is the data
    • Between the beginning of a tape volume and the first "tape mark" OR
    • Between two "tape marks" on a tape volume.
    Period. End of story.

    DO NOT use the term "file" as a substitute for the term "data set." An MVS data set is divided into distinct physical and logical records. There is no use of embedded data to distinguish elements of a data set as is often true of "files" in Linux, Unix and Windows.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: Can we use symbolic parameter in sysin card?

Postby vishaljain » Wed May 15, 2013 3:07 pm

Thanks Steve, that was helpful. :)
vishaljain
 
Posts: 4
Joined: Mon Apr 29, 2013 3:59 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Can we use symbolic parameter in sysin card?

Postby MrSpock » Wed May 15, 2013 3:47 pm

If you're talking about system or JCL symbolics, you'll have to wait for z/OS v2.1:

Enhancements for symbol processing in JCL in JES2 environments. This new
function is designed to make both JCL and system symbols available during
job execution. For example, you will be able to specify that symbols be used in
instream data sets, such as SYSIN data sets, and that symbols be retrieved from
the system using new programming services. This support is intended to make
symbols more usable and accessible and to make it easier to use identical copies
of JCL in multiple environments.
User avatar
MrSpock
Global moderator
 
Posts: 807
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: Can we use symbolic parameter in sysin card?

Postby Ed Goodman » Wed May 15, 2013 8:22 pm

Remind me...diff between JES2 and JES3? (We're on JES3, that's why I ask)
Ed Goodman
 
Posts: 341
Joined: Thu Feb 24, 2011 12:05 am
Has thanked: 3 times
Been thanked: 17 times

Re: Can we use symbolic parameter in sysin card?

Postby dick scherrer » Wed May 15, 2013 8:26 pm

Hello,

To get around your current "opportunity" you might create all of the DEFINEs you need in separate members and at run time specify which DEFINE member to use via the symbolic parameter.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Can we use symbolic parameter in sysin card?

Postby Akatsukami » Wed May 15, 2013 8:40 pm

Ed Goodman wrote:Remind me...diff between JES2 and JES3?

One :D
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: Can we use symbolic parameter in sysin card?

Postby Akatsukami » Wed May 15, 2013 8:41 pm

dick scherrer wrote:Hello,

To get around your current "opportunity" you might create all of the DEFINEs you need in separate members and at run time specify which DEFINE member to use via the symbolic parameter.

Mmm...if there are a fairly small number of possibilities. Perhaps a bit of Rexx or other language tailoring a skeleton?
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: Can we use symbolic parameter in sysin card?

Postby steve-myers » Wed May 15, 2013 8:49 pm

Ed Goodman wrote:Remind me...diff between JES2 and JES3? (We're on JES3, that's why I ask)
One could write a book. Ed, why not put the question in Operating systems.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post