Classification: Confidential

I believe you need to clarify the following.
Are these JCL symbols or SYSTEM symbols.

System symbols can be change dynamically (as of z/OS 2.1; prior to 2.1 via 
unsupported utilkity).
I am unaware of any method to change JCL symbols directly.



-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Charles Hardee
Sent: Thursday, October 19, 2023 9:18 AM
To: [email protected]
Subject: Re: Programatically setting JCL symbols

[CAUTION: This Email is from outside the Organization. Unless you trust the 
sender, Don’t click links or open attachments as it may be a Phishing email, 
which can steal your Information and compromise your Computer.]

My apologies, I didn't mean to stir up the hornet's nest of opinions on the 
viability of my question.

I will "grossly" explain what I want to do.
I am not interested in other methods, I have other methods, but I am interested 
in this method the most, if it can be done.

Program A executes and sets a global symbol to a certain value and terminates.
Many other jobs execute and, in each one, as needed, the programs check to see 
if the global symbol is set and, if it is, to what value.
They then make logic path decisions within the program based on the value of 
the global symbol.
Finally, Program B runs, or maybe it's just Program A again, and the global 
symbol is deleted.

So, my question is, still, is it possible to define SET symbols from within a 
program?

Thanks, again, in advance for any *constructive* assistance.
Chuck

On Thu, Oct 19, 2023 at 2:26 AM Lennie Dymoke-Bradshaw < 
[email protected]> wrote:

> Yes, I did mean that. My bad for sending a note late at night when I'm
> tired.
> Lennie
>
> -----Original Message-----
> From: IBM Mainframe Discussion List <[email protected]> On
> Behalf Of Paul Gilmartin
> Sent: 18 October 2023 23:56
> To: [email protected]
> Subject: Re: Programatically setting JCL symbols
>
> On Wed, 18 Oct 2023 22:53:05 +0100, Lennie Dymoke-Bradshaw wrote:
>
> >On the other hand they can be passed to another job via the internal
> reader specified with the SYMBOLS parameter.
> >For example,
> >//INTRDR   DD  *,SYMLIST=*
> >It could make sense in this instance.
> >
> ITYM:
> //         EXPORT SYMLIST=*
>     ...
> //INTRDR   DD  SYSOUT=(,INTRDR),SYMBOLS=JCLONLY
>
> It's possible the OP wants to pass values between steps.  The
> guaranteed way to do that is with a temporary data set.
>
> There was s discussion here lately of environment variables.
> Questions I never saw clearly answered:
>
> o Are environment variables available to any program, regardless of
> language?
>
> o Do they require LE or C RTL?
>
> o Do they endure from step to step?
>
> o Are they rooted with WXTRN environ and structured as in POSIX?
>
> --
> gil
>
> ----------------------------------------------------------------------
> 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
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO IBM-MAIN
::DISCLAIMER::
________________________________
The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only. E-mail transmission is not guaranteed to be 
secure or error-free as information could be intercepted, corrupted, lost, 
destroyed, arrive late or incomplete, or may contain viruses in transmission. 
The e mail and its contents (with or without referred errors) shall therefore 
not attach any liability on the originator or HCL or its affiliates. Views or 
opinions, if any, presented in this email are solely those of the author and 
may not necessarily reflect the views or opinions of HCL or its affiliates. Any 
form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of this message without the prior written 
consent of authorized representative of HCL is strictly prohibited. If you have 
received this email in error please delete it and notify the sender 
immediately. Before opening any email and/or attachments, please check them for 
viruses and other defects.
________________________________

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

Reply via email to