Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Resolve 2 symbolics in a JCL ' one in brackets

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Resolve 2 symbolics in a JCL ' one in brackets
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    Post subject:
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

Moderator Team Head


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

PostPosted: Thu Aug 27, 2009 11:36 am    Post subject: Reply to: Resolve 2 symbolics in a JCL ' one in brackets
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to resolve IMS DB status code FM Priyanka Boga IMS DB/DC 3 Fri Jun 10, 2016 1:54 pm
No new posts how to Resolve SQL Error Code -924 Rajesh3825 ABENDS & Debugging 2 Thu Dec 10, 2015 2:39 pm
No new posts How to resolve -532 pkmurali DB2 3 Thu Aug 06, 2015 10:03 pm
No new posts Resolve symbolics - other than starti... Shrinika Rajendran JCL & VSAM 4 Tue May 27, 2014 6:15 pm
No new posts SOC7 abend- How to resolve it sandeep kumar302 COBOL Programming 24 Wed Apr 30, 2014 5:57 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us