iehprogm utility?



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

iehprogm utility?

Postby kandrepavan » Sat Sep 01, 2012 10:28 am

Hi All,

I Want to Rename a Dataset using IEHPROGM utility.. my code is as follows. But it is giving an error.
//STEP01 EXEC PGM=IEHPROGM                                             
//DD1 DD UNIT=3390,VOL=SER=CCHN07,DISP=OLD                             
//SYSIN    DD *                                                       
  RENAME DSNAME=CCHN635.JCL.PROG,VOL=3390=CCHN07,                     
  NEWNAME=CCHN635.JCL.PROG1                                           
/*                                                                     
//SYSPRINT DD SYSOUT=*                                                 
//SYSOUT   DD SYSOUT=*                                                 
//     

Error Is:
********************************* TOP OF DATA **********************************
SYSTEM SUPPORT UTILITIES ---- IEHPROGM

RENAME DSNAME=CCHN635.JCL.PROG,VOL=3390=TCHN07, X
NEWNAME=CCHN635.JCL.PROG1
IEH202I INVALID KEYWORD OR CONTROL STATEMENT SYNTAX

UTILITY END
******************************** BOTTOM OF DATA ********************************

Please help me out what is the Error in this code
kandrepavan
 
Posts: 35
Joined: Wed Mar 21, 2012 11:03 am
Has thanked: 0 time
Been thanked: 1 time

Re: iehprogm utility?

 

Re: iehprogm utility?

Postby expat » Sat Sep 01, 2012 10:58 am

1) Read the manual and use exactly what is suggested for continuation.

2) Use IDCAMS instead
expat
 
Posts: 382
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 1 time

Re: iehprogm utility?

Postby steve-myers » Sat Sep 01, 2012 11:33 am

As expat says, IEHPROGM has very strict (and very old fashioned) rules about continuation, which you do not appear to be following.

If the TCHN07 volume is SMS managed, stay away from IEHPROGM.

If the dataset is cataloged, use IDCAMS ALTER xxx NEWNAME(yyy), or use the TSO RENAME command using the TSO in batch JCL.
steve-myers
Global moderator
 
Posts: 1885
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

Re: iehprogm utility?

Postby jaggz » Mon Sep 03, 2012 12:16 pm

Hi,

"When renaming an SMS-managed data set, IEHPROGM will uncatalog the data set and then catalog the data set under its new name in the appropriate catalog."

Can you check if "CCHN635.JCL.PROG1" if it exist already ?

Jaggz
User avatar
jaggz
 
Posts: 356
Joined: Fri Jul 23, 2010 8:51 pm
Has thanked: 8 times
Been thanked: 4 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post