For this I used the system symbol SYSNAME. Logically I thought an included member as in...
//ENVIRON INCLUDE MEMBER=ENVI&SYSNAME
However this does not resolve the symbol and results in the JCL ERROR...
08.22.54 JOB62921 IEFC452I N472730S - JOB NOT RUN - JCL ERROR 917
------ JES2 JOB STATISTICS ------
10 CARDS READ
24 SYSOUT PRINT RECORDS
0 SYSOUT PUNCH RECORDS
1 SYSOUT SPOOL KBYTES
0.00 MINUTES EXECUTION TIME
1 //N472730S JOB (BWG0,T,I),'SYMTEST',CLASS=B,MSGCLASS=O,
// MSGLEVEL=(1,1),NOTIFY=&SYSUID
IEFC653I SUBSTITUTION JCL - (BWG0,T,I),'SYMTEST',CLASS=B,MSGCLASS=O,MS
2 // EXPORT SYMLIST=(SYSNAME)
3 //JOBPROC JCLLIB ORDER=(N472730.USER.JCL) ** REMOVE, MUST BE DEFAULT
4 //ENVIRON INCLUDE MEMBER=ENVI&SYSNAME
.....
STMT NO. MESSAGE
4 IEFC642I EXCESSIVE PARAMETER LENGTH IN THE MEMBER FIELD
------ JES2 JOB STATISTICS ------
10 CARDS READ
24 SYSOUT PRINT RECORDS
0 SYSOUT PUNCH RECORDS
1 SYSOUT SPOOL KBYTES
0.00 MINUTES EXECUTION TIME
1 //N472730S JOB (BWG0,T,I),'SYMTEST',CLASS=B,MSGCLASS=O,
// MSGLEVEL=(1,1),NOTIFY=&SYSUID
IEFC653I SUBSTITUTION JCL - (BWG0,T,I),'SYMTEST',CLASS=B,MSGCLASS=O,MS
2 // EXPORT SYMLIST=(SYSNAME)
3 //JOBPROC JCLLIB ORDER=(N472730.USER.JCL) ** REMOVE, MUST BE DEFAULT
4 //ENVIRON INCLUDE MEMBER=ENVI&SYSNAME
.....
STMT NO. MESSAGE
4 IEFC642I EXCESSIVE PARAMETER LENGTH IN THE MEMBER FIELD
6 //SYSTSPRT DD SYSOUT=(*,,&SYSNAME)
.....
STMT NO. MESSAGE
6 IEFC627I INCORRECT USE OF AMPERSAND IN THE SYSOUT FIELD
.....
STMT NO. MESSAGE
6 IEFC627I INCORRECT USE OF AMPERSAND IN THE SYSOUT FIELD
// EXPORT SYMLIST=(SYSNAME)
//SYMTEST EXEC PGM=IKJEFT1B
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *,SYMBOLS=EXECSYS
HMIG &SYSNAME..** WAIT EXTENDRC
/*
//SYMTEST EXEC PGM=IKJEFT1B
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *,SYMBOLS=EXECSYS
HMIG &SYSNAME..** WAIT EXTENDRC
/*
// SET SYSNAME=MVS3
For library management purposes I should like to use the already existing system symbol.
Am I doing it wrong or is JES2 just not designed to use system symbols in this way?
If there is something I'm missing and this can be achieved I'd be pleased to know how.