MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Symbolic parameters in SYSIN

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
saijai
Beginner


Joined: 06 Sep 2006
Posts: 14
Topics: 6

PostPosted: Tue Sep 12, 2006 6:17 am    Post subject: Symbolic parameters in SYSIN Reply with quote

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
View user's profile Send private message
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Tue Sep 12, 2006 6:39 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
saijai
Beginner


Joined: 06 Sep 2006
Posts: 14
Topics: 6

PostPosted: Tue Sep 12, 2006 6:43 am    Post subject: Reply with quote

Thanks...Its working
_________________
Thanks,
Jai
Back to top
View user's profile Send private message
saijai
Beginner


Joined: 06 Sep 2006
Posts: 14
Topics: 6

PostPosted: Tue Sep 12, 2006 7:05 am    Post subject: Reply with quote

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
View user's profile Send private message
anbesivam
Beginner


Joined: 09 Aug 2006
Posts: 66
Topics: 14

PostPosted: Tue Sep 12, 2006 7:16 am    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Tue Sep 12, 2006 7:19 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
saijai
Beginner


Joined: 06 Sep 2006
Posts: 14
Topics: 6

PostPosted: Tue Sep 12, 2006 7:25 am    Post subject: Reply with quote

Hi kolusu,

Thanks..Should we need to set the NODE variable ZSYSNODE. Is it not a system variable.?
_________________
Thanks,
Jai
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Tue Sep 12, 2006 7:39 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
saijai
Beginner


Joined: 06 Sep 2006
Posts: 14
Topics: 6

PostPosted: Tue Sep 12, 2006 7:53 am    Post subject: Reply with quote

Thanks kolusu.
_________________
Thanks,
Jai
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group