IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Resolve 2 symbolics in a JCL ' one in brackets


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
buzzvinodh

New User


Joined: 27 Aug 2007
Posts: 2
Location: Chennai

PostPosted: Thu Aug 27, 2009 6:15 am
Reply with quote

Hi,

I want to submit a member in a pds through JCL and I wanted to pass the member name and PDS name as symbolic parameters but the job is always failing and it is resolving only the symbolics in brackets.

Can anyone please help me.

Here is it;
LN=PDS.TEST
MEM=MEMBER

SUB '&LN(&MEM)'

it should be resolved as
SUB 'PDS.TEST(MEMBER)'

but it is resolving only the member and failing like below:
SUB '&LN(MEMBER)'
Back to top
View user's profile Send private message
gauravguglani

New User


Joined: 07 Jun 2007
Posts: 1
Location: Mumbai

PostPosted: Thu Aug 27, 2009 9:16 am
Reply with quote

Hi,

I think the way you given parameter is incorrect,

Can you please try SUB '&LN.(&MEM)'



Thanks,
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Aug 27, 2009 11:36 am
Reply with quote

Could you post the actual JCL, because this did work for me:

Code:

//MYJOB JOB ...
// SET LN=PDS.TEST,MEM=MEMBER
//*
//STEP0001 EXEC PGM=IKJEFT01,PARM='SUB ''&LN(&MEM)'''
//SYSTSPRT DD   SYSOUT=*
//SYSTSIN  DD   DUMMY
//*


JESJCL Output

Code:

2 // SET LN=PDS.TEST,MEM=MEMBER
  //*
3 //STEP0001 EXEC PGM=IKJEFT01,PARM='SUB ''&LN(&MEM)'''
  IEFC653I SUBSTITUTION JCL - PGM=IKJEFT01,PARM='SUB ''PDS.TEST(MEMBER)'''
4 //SYSTSPRT DD   SYSOUT=*
5 //SYSTSIN  DD   DUMMY
  //*
Back to top
View user's profile Send private message
buzzvinodh

New User


Joined: 27 Aug 2007
Posts: 2
Location: Chennai

PostPosted: Fri Aug 28, 2009 2:31 am
Reply with quote

Thanks Gaurav,

SUB '&LN.(&MEM)' worked for me icon_smile.gif
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts using symbolics in the destination fi... All Other Mainframe Topics 12
No new posts Need help to resolve a hard edit COBOL Programming 8
This topic is locked: you cannot edit posts or make replies. Need help to resolve a hard edit COBOL Programming 4
No new posts How to resolve SYNCH15! & SYNCH16... Compuware & Other Tools 0
No new posts How to resolve sqlcode of CALL ATTACH... DB2 3
Search our Forums:


Back to Top