On 7/21/2016 12:53 PM, Jesse 1 Robinson wrote:
I'm trying to use system symbols in batch JCL under z/OS 2.1. Specifically, I'd 
like to create a DSN like this:

    TSOSKIP.REPORT.D-local-date.T-local-time

I've perused KC but still cannot get to work. Now maybe DSN simply does not 
allow embedded symbolics, but I did not see that prohibition. Here's what I get.

3 // SET D=&LDATE
4 // SET T=&LTIME
   //*
5 //TIMETEST EXEC PGM=IKJEFT01
6 //SYSTSIN  DD *
7 //SYSTSPRT DD DISP=(,CATLG),SPACE=(TRK,1),RECFM=FB,LRECL=80,
   //            UNIT=SYSALLDA,
   //            DSN= TSOSKIP.REPORT.D&D..T&T
   IEFC653I SUBSTITUTION JCL - 
DISP=(,CATLG),SPACE=(TRK,1),RECFM=FB,LRECL=80,UNIT=SYSALLDA,
   DSN= TSOSKIP.REPORT.D&LDATE.T&LTIME
. MESSAGE
7 IEFC627I INCORRECT USE OF AMPERSAND IN THE DSN FIELD

I read that system symbols must be enabled by class, which I did for class A: 
$HASP837 JOBCLASS(A)         SYSSYM=ALLOW

Your problem is simply that you're referencing symbols that don't exist. What you want is:

//SKIPTEST JOB 1,JAFFE,CLASS=A,MSGCLASS=T
//TIMETEST EXEC PGM=IKJEFT01
//SYSTSIN  DD *
//SYSTSPRT DD DISP=(,CATLG),SPACE=(TRK,1),RECFM=FB,LRECL=80,
//            UNIT=SYSALLDA,
//            DSN=TSOSKIP.REPORT.D&LYYMMDD..T&LHHMMSS

--
Edward E Jaffe
Phoenix Software International, Inc
831 Parkview Drive North
El Segundo, CA 90245
http://www.phoenixsoftware.com/

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to