View previous topic :: View next topic |
Author |
Message |
saijai Beginner
Joined: 06 Sep 2006 Posts: 14 Topics: 6
|
Posted: Tue Sep 12, 2006 6:17 am Post subject: Symbolic parameters in SYSIN |
|
|
Hi
I am executing XMIT TSO command using IKJEFT01 utility. My code goes like this.
Code: | //STEP2 EXEC PGM=IKJEFT01
//*
//INDD DD DSN=&PDS,DISP=SHR
//OUTDD DD DSN=&PDS..PS,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
XMIT NBICPROD.COGJS DA(INDD) -
OUTDA(OUTDD) |
and the error msg is
Code: |
READY
XMIT NBICPROD.COGJS DA(INDD) OUTDA(OUTDD)
TRANSMIT command terminated. Input dataset unusable +
Allocation failed for dataset 'COGJS.INDD' +
DATA SET COGJS.INDD NOT IN CATALOG OR CATALOG CAN NOT BE ACCESSED
READY
END |
I understand that it is searching for the dataset <USERID>.INDD
Is there anyway to use symbolic parameters or DD names as such in the SYSTSIN Card statement? |
|
Back to top |
|
|
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Tue Sep 12, 2006 6:39 am Post subject: |
|
|
Change DA to DD, and OUTDA to OUTDD.
O.
________
lolol
Last edited by ofer71 on Sat Feb 05, 2011 11:47 am; edited 1 time in total |
|
Back to top |
|
|
saijai Beginner
Joined: 06 Sep 2006 Posts: 14 Topics: 6
|
Posted: Tue Sep 12, 2006 6:43 am Post subject: |
|
|
Thanks...Its working _________________ Thanks,
Jai |
|
Back to top |
|
|
saijai Beginner
Joined: 06 Sep 2006 Posts: 14 Topics: 6
|
Posted: Tue Sep 12, 2006 7:05 am Post subject: |
|
|
Hi
That was working fine ..But my question is there a way to code symbolic system variables/parameters in Sysin card?Something like this
Code: |
XMIT &ZSYSNODE..&SYSUID DD(INDD) OUTDD(OUTDD)
|
_________________ Thanks,
Jai |
|
Back to top |
|
|
anbesivam Beginner
Joined: 09 Aug 2006 Posts: 66 Topics: 14
|
Posted: Tue Sep 12, 2006 7:16 am Post subject: |
|
|
Hi Saijai,
It is possible, For example
Code: | // . . . . jobcard . . .
// SET PDS='SE16661.LMACO.LOAD'
// SET OPTS=NONOTIFY'
...
//SYSTSIN DD *
XMIT XXXX.XXXXX DS(''&PDS'') OUTDSN(TEMP.FTP.SND) &OPTS
....
.... |
|
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Tue Sep 12, 2006 7:19 am Post subject: |
|
|
Quote: |
That was working fine ..But my question is there a way to code symbolic system variables/parameters in Sysin card?Something like this
|
saijai,
try this job
Code: |
//MYPROC PROC
//STEP0100 EXEC PGM=IKJEFT01,DYNAMNBR=10,
// PARM='XMIT &ZSYSNODE..&SYSUID DD(INDD) OUTDD(OUTDD)'
//SYSTSIN DD DUMMY
//SYSTSPRT DD SYSOUT=*
//INDD DD DSN=&PDS,
// DISP=SHR
//OUTDD DD DSN=&OUTPDS,
// DISP=SHR
// PEND
//RUN EXEC MYPROC,ZSYSNODE='xxxx',PDS='your xmit dataset',
// OUTPDS='your output dsn'
//*
|
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
saijai Beginner
Joined: 06 Sep 2006 Posts: 14 Topics: 6
|
Posted: Tue Sep 12, 2006 7:25 am Post subject: |
|
|
Hi kolusu,
Thanks..Should we need to set the NODE variable ZSYSNODE. Is it not a system variable.? _________________ Thanks,
Jai |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Tue Sep 12, 2006 7:39 am Post subject: |
|
|
Quote: |
Thanks..Should we need to set the NODE variable ZSYSNODE. Is it not a system variable.?
|
You cannot use system symbols, except for &SYSUID, in batch JCL. Unless your shop modifies to use ZYSNODE as symbol for started task you need to pass the value of ZSYSNODE.
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
saijai Beginner
Joined: 06 Sep 2006 Posts: 14 Topics: 6
|
Posted: Tue Sep 12, 2006 7:53 am Post subject: |
|
|
Thanks kolusu. _________________ Thanks,
Jai |
|
Back to top |
|
|
|
|