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

Include variables in SYSIN - workaround needed


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

New User


Joined: 21 Aug 2009
Posts: 10
Location: London

PostPosted: Fri Sep 25, 2009 6:48 am
Reply with quote

Hi

I am trying to create a skeleton to rename one dataset. The name of the dataset is a variable, so it will not work if I include it as part of the SYSIN. I have tried the direct command as well as including the instruction in a dataset.

Any guidance or workaround?

I am using IDCAMS, with the command ALTER &NAME NEWNAME(&NAME..OLD)

Many thanks,
M
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Fri Sep 25, 2009 2:40 pm
Reply with quote

Use the TSO RENAME command instead, since that could be passed via a PARM statement.
Back to top
View user's profile Send private message
marisalondon

New User


Joined: 21 Aug 2009
Posts: 10
Location: London

PostPosted: Fri Oct 30, 2009 10:50 am
Reply with quote

Thanks Kevin. It is working now.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Mainframe Programmer with CICS Skill... Mainframe Jobs 0
No new posts Generate output lines (SYSIN card for... DFSORT/ICETOOL 4
No new posts Help needed to assemble IMS sample co... ABENDS & Debugging 4
No new posts JCL with variables JCL & VSAM 1
Search our Forums:

Back to Top