Just a QND to see if this would work for you. It will need some adjustment for
STC, but it might be doable. Enjoy
// EXPORT SYMLIST=(P1,P2,P3,P4)
// SET P1=A
// SET P2=B
// SET P3=C
// SET P4=D
//STEP010 EXEC ASMACL
//STEP010.SYSIN DD *
PARMTEST CSECT
STM 14,12,0(13)
L 1,0(1)
LH 2,0(1)
LM 3,4,2(1)
DC X'0000'
//STEP020.SYSIN DD *
ENTRY PARMTEST
NAME PARMTEST(R)
//STEP020 EXEC PGM=PARMTEST,
// PARMDD=MYPARM
//STEPLIB DD DISP=SHR,DSN=&&LOAD
//SYSUDUMP DD SYSOUT=*
//MYPARM DD *,
// SYMBOLS=(JCLONLY)
&P1,&P2,&P3,&P4
//
THE DUMP SHOWS
0-3 00000064 80006FF6 00000007 C16BC26B
4-7 C36BC400 009FB040 009BFFC8 00FC0280
-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of
Binyamin Dissen
Sent: Friday, May 9, 2025 8:35 AM
To: [email protected]
Subject: Re: Limit to length of PARM= on a START command?
I want to be able to dynamically change the parameters.
Changed the PROC to PARM='&P1&P2&P3' (default to null)
Then I cam specify P1, P2 and P3 on the START command and multiple JCL
statements are generated.
On Thu, 8 May 2025 19:01:43 +0200 Massimo Biancucci
<[email protected]> wrote:
:>Hi,
:>
:>you can use PARMDD syntax:
:>
:>//ST010 EXEC PGM=MYPGM,PARMDD=PARMIN
:>...
:>//PARMIN DD *
:>SOMETHING UP TO 80
:>OTHER UP TO 80
:>....
:>so on
:>/*
:>
:>JCL should concatenate N strings of xx characters, one for each PARMIN row.
:>
:>Keep attention ! It removes trailing spaces from rows.
:>
:>Best regards.
:>Max
:>
:>
:>
:>
:>Il giorno gio 8 mag 2025 alle ore 18:43 Binyamin Dissen <
:>[email protected]> ha scritto:
:>
:>> How?
:>>
:>> On Thu, 8 May 2025 11:31:56 -0500 Steve Beaver :>>
<[email protected]> wrote:
:>>
:>> :>You can do a continuation
:>> :>
:>> :>
:>> :>
:>> :>
:>> :>-----Original Message-----
:>> :>From: IBM Mainframe Discussion List [mailto:[email protected]] On
:>> :>Behalf Of Binyamin Dissen :>> :>Sent: Thursday, May 8, 2025 11:24 AM :>>
:>To: [email protected] :>> :>Subject: Limit to length of PARM= on a
START command?
:>> :>
:>> :>Interesting. There is a limit to the length of PARM= on a START :>>
statement.
:>> :>The
:>> :>maximum length appears to be related to the JCL statement :>> :> :>> :>//
PARM= :>> :> :>> :>where the parm has to fit up to column 71 (71-8)=63).
:>> :>
:>> :>Didn't find this documented.
:>>
:>> --
:>> Binyamin Dissen <[email protected]> :>>
http://www.dissensoftware.com/
:>>
:>> Director, Dissen Software, Bar & Grill - Israel :>> :>>
----------------------------------------------------------------------
:>> For IBM-MAIN subscribe / signoff / archive access instructions, :>> send
email to [email protected] with the message: INFO IBM-MAIN :>> :>
:>----------------------------------------------------------------------
:>For IBM-MAIN subscribe / signoff / archive access instructions, :>send email
to [email protected] with the message: INFO IBM-MAIN
--
Binyamin Dissen <[email protected]>
http://www.dissensoftware.com/
Director, Dissen Software, Bar & Grill - Israel
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to
[email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN