Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Include variables in SYSIN - workaround needed

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Include variables in SYSIN - workaround needed
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

Moderator Team Head


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

PostPosted: Fri Sep 25, 2009 2:40 pm    Post subject: Reply to: Include variables in SYSIN - workaround needed
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    Post subject:
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    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
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 8 Wed Jan 25, 2017 8:24 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:23 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:21 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us