SWAG but have you tried a trailing semicolon? Or quotes around the value? I 
found an example on the web for another product:
ENVAR C='X Y'
...which sorta suggests that the quotes might work. Might try both flavors of 
quote, too.

-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Colin Paice
Sent: Tuesday, June 25, 2024 1:12 PM
To: [email protected]
Subject: Using environment variables in JCL and USS

I am writing a program using system SSL (GSK*).
If I define the environment variables in USS everything works.
If I specified the environment variables in JCL
//START1   EXEC PGM=GSKMAIN,REGION=0M,
// PARM=('ENVAR("_CEE_ENVFILE=DD:STDENV")/4000')
//STDENV  DD *
GSK_TRACE_FILE=/tmp/zzztrace.file
GSK_TRACE=0xff
GSK_KEYRING_FILE=START1/TN3270
/*
environment variables like GSK_KEYRING_FILE are padded on the right with
blanks.  it cannot find the keyring TN3270______....   and gives me a trace
file with blanks on the end!

I guess this is a GSK bug - it should strip trailing blanks, but I wondered if 
there was a JCL solution for this?

Colin

----------------------------------------------------------------------
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

Reply via email to