Oh.  Thanks!

The reason was I wanted my assembler program to be the same for PARM= as
for ADDRESS Linkpgm. Good to know.

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Terry Sambrooks
Sent: 11. elokuuta 2008 14:19
To: [email protected]
Subject: Re: JCL Parm= Question

Hi Lindy,

You asked "How do I code the PARM= in JCL such that each parm gets its
own
address?"

Unfortunately the PARM field as supplied via JCL, does not work in a
similar
way to parameters passed from one program to another.

>From a JCL perspective the PARM field is always considered a single
entity
of up to 100 characters, and hence has a single pointer. It is just the
way
the system is designed.

A possible quick method of segmenting the PARM field in the way you
require
with each element between commas being treated as a separate entity
would be
to front end the program on the EXEC statement with a REXX routine,
which
PARSEs the JCL PARM, and uses LINKPGM or some such to invoke the
original
program.

Kind regards - Terry

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to