On Mon, 15 Aug 2022 13:54:18 -0400, Tony Harminc wrote:
>There seem to be way too many ways to access various subsets of System and
>JCL symbols.
>
Yes. However a mitigating factor is that many of them don't
work thee way you'd like.
> ... I have C/C++ code that I want to be able to read its own
>config file (a UNIX file, that is) and perform substitution for system
>symbols. I do not want the user to have to run an extra job step or the
>like.
>
Is the set of symbols predefined or open-ended?
Wouldn't it be nice if there were a function to add all or a selected set of
system
and JCL symbols as environment variables in the caller's address space?
then, one might:
popen( command containing here-document, "r" ); E.g.
#! /bin/sh
cat <<-endfig
The configuration is:
User: $LOGNAME
Time: $( date )
etc.
endfig
What other utilities perform symbol substitution in files?
> ... (what does EXPORT really *do* anyway...?).
>
I suspect it creates a JES control block containing names/values of JCL
symbols at the end of the job step (not, as would be intuitive, at the point
of the "//name DD *,SYMBOLS=...")
--
gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN