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 

rename a pds using iehprogrm

 
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
nsraj
Beginner


Joined: 26 Aug 2003
Posts: 2
Topics: 1
Location: india

PostPosted: Fri Aug 29, 2003 12:35 am    Post subject: rename a pds using iehprogrm Reply with quote

Question
Hi Readers
I am new to this forum,I would like to know how jcl code looks to rename a PDS/a PDS member using IEHPROGM
I tried the following code
Code:

//step1 EXEC PGM=IEHPROGM
//DD1 DD UNIT=<UNIT>,VOL=SER=<LABEL>,DISP=OLD
//SYSIN DD *
   RENAME DSNAME=<DSNAME>
   NEWNAME=DSNAME,VOL=<UNIT>=,<LABEL>
/*

THE ERRORS
CONTROL STATEMENTS INVALID
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
nsraj
Beginner


Joined: 26 Aug 2003
Posts: 2
Topics: 1
Location: india

PostPosted: Fri Aug 29, 2003 12:37 am    Post subject: Reply with quote

Rolling Eyes
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
raggop
Beginner


Joined: 05 Feb 2003
Posts: 19
Topics: 3

PostPosted: Fri Aug 29, 2003 2:33 am    Post subject: Reply with quote

//STEP010 EXEC PGM=IEHPROGM,REGION=1024K
//*
//SYSPRINT DD SYSOUT=X
//DD1 DD UNIT=3390,VOL=SER=AH4T11,DISP=OLD
//*
//SYSIN DD *
RENAME DSNAME=SDRXG12.RAG.JCL,VOL=3390=AH4T11, X
NEWNAME=SDRXG12.GAR.JCL
/*

note you need to code 'X' in col 72 to continue

hope this helps
Back to top
View user's profile Send private message
Tintxiko
Beginner


Joined: 22 Aug 2003
Posts: 11
Topics: 3
Location: Spain

PostPosted: Fri Aug 29, 2003 3:01 am    Post subject: Reply with quote

Try this:
//step1 EXEC PGM=IEHPROGM
//DD1 DD UNIT=disk,VOL=SER=<LABEL>,DISP=OLD
//SYSIN DD *
RENAME DSNAME=OLDname,VOL=disk=<LABEL>,NEWNAME=NEWname
/*

tintxiko.
_________________
Thanks - Tintxiko
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


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

PostPosted: Fri Aug 29, 2003 4:27 am    Post subject: Reply with quote

nsraj,


Here is a detailed tutorial about IEHPROGM (Program Maintenance) Program with examples

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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