On Tue, Jan 3, 2017 at 7:09 PM, Charles Mills <charl...@mcn.org> wrote:
> Can COBOL read environment variables these days? > Yes, via the C language subroutine "getenv()". But how would you set the UNIX environment variable for the job to pick it up? Via the STDENV DD statement? My thoughts, shortened: Get the value in a PARM= Get the value via ACCEPT FROM SYSIN Get the value from a file using normal FILE I/O Get the value from a data base Get the value from a JCL symbol via the IAZSYMBL facility used in an HLASM subroutine. Possible problems: the PARM= is already in use & changing it could require a "change ticket". The same with ACCEPT FROM SYSIN. > > Charles > -- There’s no obfuscated Perl contest because it’s pointless. —Jeff Polk Maranatha! <>< John McKown ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN