That is more or less the solution we are using now: to circumvent the
limitations of PARM= we pipe the template through several steps of the
utility. Every step replaces as much of the variables in the template as
the PARM will allow. I consider this rather clumsy and was looking for a
more elegant solution that could be implemented in a single step.
What we really need of course is variabel substitution in inline data by
the system:
// EXEC PGM=XXX
//SYSIN DD *
PRINT &DATASET(&MEMBER)
/*
//
where JES2, JES3, MVS or whatever treats those &VARs just like JCL
parameters and substitutes the current values. Then I wouldn't have to
figure out how I can retrieve JCL procedure paramater values. I'm sure
every shop would highly appreciate such a feature. This is probably not
the right place to lobby for this feature....
Fred!
Fred
One possible solution is to have a simple program that writes
it's PARM value to a sequential file.
Put several steps of these at the start of your stream, and let
each write DISP=MOD to a parm file (except the first one, which should
create the file or write DISP=NEW). Each step of course has a different
JCL variable as it's PARM.
Then your utility can read the file containing the parameters
rather than using PARM.
You could even have an option - PARM=SYSIN gets from file, else
from PARM.
Regards
Bertus
EG.
//ABCDEFGH PROC P1='VAR1=VAL1',P2='VAR2=VAL2'
//PARM1 EXEC PGM=PARMWRIT,PARM='&P1'
//PARMFILE DD
DISP=(,PASS),SPACE=(CYL,1),UNIT=VIO,LRECL=80,RECFM=F,DSN=&&PARMS
//PARM2 EXEC PGM=PARMWRIT,PARM='&P2'
//PARMFILE DD DISP=(MOD,PASS),RECFM=F,DSN=&&PARMS
//UTILITY EXEC PGM=UTIL,PARM=SYSIN
//SYSIN DD DSN=&&PARMS,DISP=(OLD,DELETE)
//END PEND
//TEST EXEC ABCDEFGH,P1='VAR=VAL9'
//
-----------------------------------------------------------------
ATTENTION:
The information in this electronic mail message is private and
confidential, and only intended for the addressee. Should you
receive this message by mistake, you are hereby notified that
any disclosure, reproduction, distribution or use of this
message is strictly prohibited. Please inform the sender by
reply transmission and delete the message without copying or
opening it.
Messages and attachments are scanned for all viruses known.
If this message contains password-protected attachments, the
files have NOT been scanned for viruses by the ING mail domain.
Always scan attachments before opening them.
-----------------------------------------------------------------
----------------------------------------------------------------------
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