View previous topic :: View next topic
|
Author |
Message |
Mahsa Rouzkhatouni
New User
Joined: 27 Feb 2021 Posts: 32 Location: Germany
|
|
|
|
Hi everybody,
Is it possible to limit the number of characters that each variable returns in JCL?
To be more clear, I want to define a dataset name that has 6 variable qualifiers which will be substituted with the values. But the number of characters exceed 44 resulting in RC=8.
Code: |
DSN=UNLD.&DB..&TS..D&JDATE..T&TIME..P&PA.
|
Is there any way to only get the last 2 characters of for example &PA which is partition number?
Thanks in advance,
Mahsa Rouzkhatouni |
|
Back to top |
|
|
Mahsa Rouzkhatouni
New User
Joined: 27 Feb 2021 Posts: 32 Location: Germany
|
|
|
|
Quote: |
only get the last 2 characters of &PA
|
Nevermind, I found out. I have to write it this way :
Code: |
DSN=UNLD.&DB..&TS..D&JDATE..T&TIME..P&PA(3,2). |
|
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Glad you figured it out yourself
Rather 3,2 I would recommend to use (-2:2) as it is backward counting would be ideal |
|
Back to top |
|
|
|