View previous topic :: View next topic |
Author |
Message |
kbn Beginner
Joined: 14 Nov 2005 Posts: 13 Topics: 10
|
Posted: Mon Jun 29, 2009 1:07 am Post subject: Change the file name |
|
|
Hi,
Is it possible to change the DSNAME of the file by submitting a batch job?
For example DSNAME of the file FABC is A11.B22.C33. I want to change it to D44.E55.F66.
thanks,
kbn |
|
Back to top |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Mon Jun 29, 2009 8:13 am Post subject: |
|
|
Check out the ALTER option of pgm IDCAMS or the RENAME option of IEHPROGM.
Use caution when changing the HLQ as the entry may not be in the same USERCAT pointed to by ALIAS D44. _________________ Regards,
Bill Dennis
Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Mon Jun 29, 2009 10:27 am Post subject: |
|
|
since this is in the CICS forum, I assumed that he wanted to make a change to the FCT. _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Mon Jun 29, 2009 11:08 am Post subject: |
|
|
dbzTHEdinosauer,
If it is indeed FCT entries then he need to use DFHCSDUP program to update the FCT entries.
Code: |
//STEP0100 EXEC PGM=DFHCSDUP,REGION=1M
//STEPLIB DD DSN=Your CICS.SDFHLOAD,DISP=SHR
//DFHCSD DD DSN=YOUR.DFHCSD,DISP=SHR
//SYSUT1 DD UNIT=SYSDA,SPACE=(1024,(100,100))
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
ALTER FILE(FILENAME) DSNAME(DATASET NAME)
/* |
Filename is the 8 character name that is defined in FCT.
Learn more about DFHCSDUP here
http://publib.boulder.ibm.com/infocenter/cicsts/v2r2/index.jsp?topic=/com.ibm.cics.ts22.doc/dfha6/dfha62l.htm |
|
Back to top |
|
 |
|
|