Even better for that particular situation: add a JCL variable somewhere at the 
top of the JCL and use that variable wherever the value is required:

//*
//         SET DSN=THIS.IS.THE.DATASET        <= Dataset to print
//*
:
:
:
//SYSUT1   DD DSN=&DSN,
//            DISP=SHR
:
:
:
//DD1      DD DSN=&DSN,
//            DISP=SHR


-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Skip Robinson
Sent: woensdag 6 oktober 2021 20:18
To: [email protected]
Subject: Re: IBM JCL Expert preview in today's announcement letter

My favorite layout is this:

//ddname DD DISP=xxx,
//                     DSN=dsname

This allows maximum flexibility in editing or otherwise altering JCL text.

On Wed, Oct 6, 2021 at 10:13 AM Charles Mills <[email protected]> wrote:

> I am a fan of DSN last, or at least last on a line, because it is the
> one thing that seems to change the most, or change when you clone a
> job, and when it changes, the length of the operand often changes.
>
> Charles
>
>
> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[email protected]]
> On Behalf Of David Spiegel
> Sent: Wednesday, October 6, 2021 7:33 AM
> To: [email protected]
> Subject: Re: IBM JCL Expert preview in today's announcement letter
>
> Hi Bob,
> I learned JCL in the mid '70s (45 years ago).
> Placing DISP first makes the JCL line up a lot more than placing DSN first.
> Besides not needing DCB, DSORG is usually useless as well.
>
>
--

Skip Robinson
323-715-0595

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO IBM-MAIN
-----------------------------------------------------------------
ATTENTION:
The information in this e-mail is confidential and only meant for the intended 
recipient. If you are not the intended recipient, don't use or disclose it in 
any way. Please let the sender know and delete the message immediately.
-----------------------------------------------------------------

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to