Using SYMLIST in a PROC



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Using SYMLIST in a PROC

Postby LasseH » Wed Oct 01, 2014 4:30 pm

Trying to use a string in a SET statement, but I can't make it work, suggestions...

3 different SET commands

// EXPORT SYMLIST=(THEUSER)

1. SET THEUSER=&USER
result:
6 ++ SET THEUSER=&USER
IEFC653I SUBSTITUTION JCL - THEUSER=C.D@X.Y
6 IEFC620I UNIDENTIFIABLE CHARACTER @ ON THE SET STATEMENT
2. SET THEUSER='&USER'
result:
6 ++ SET THEUSER='&USER'
7 ++THEUSER EXPORT EXPSET=&USER GENERATED STATEME...

3. SET THEUSER=''&USER''
result:
6 ++ SET THEUSER=''&USER''
IEFC653I SUBSTITUTION JCL - THEUSER=''C.D@X.Y''
6 IEFC629I INCORRECT USE OF APOSTROPHE ON THE SET STATEMENT
6 IEFC629I INCORRECT USE OF APOSTROPHE ON THE SET STATEMENT
6 IEFC621I EXPECTED CONTINUATION NOT RECEIVED


//*------------                                                     
//* INLINE PROC                                                     
//*------------                                                     
//PROC1    PROC USER='A.B@X.Y'                                       
//         EXPORT SYMLIST=(THEUSER)                                 
//         SET THEUSER=&USER                                       
//MAILERR  EXEC REXXBAT,REXXNAME='%XMAIL'                           
//CONV     DD SYSOUT=*                                               
//*                      JCLONLY/EXECSYS/CNVTSYS                     
//INPUT    DD *,SYMBOLS=(JCLONLY,CONV)                               
&THEUSER                                                             
//*                                                                 
//         PEND                                                     
//*                                                                   
//PHASEIN  EXEC PROC1,                                               
//         USER='C.D@X.Y'                                           
//*                                                                 


//Lasse
LasseH
 
Posts: 50
Joined: Mon Nov 08, 2010 2:51 pm
Has thanked: 3 times
Been thanked: 1 time

Re: Using SYMLIST in a PROC

 

Re: Using SYMLIST in a PROC

Postby NicC » Wed Oct 01, 2014 11:05 pm

Which zOS version are you using? Symbols in data only get resolved in z/OS 2 (or possibly the release before that)
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: Using SYMLIST in a PROC

Postby LasseH » Thu Oct 02, 2014 1:00 pm

Sorry, forgot that z/OS 2.1
LasseH
 
Posts: 50
Joined: Mon Nov 08, 2010 2:51 pm
Has thanked: 3 times
Been thanked: 1 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post