How to change long dataset name with CA JCLCheck runtime opion CHANGE?

Document ID : KB000126262
Last Modified Date : 06/02/2019
Show Technical Document Details
Question:
How do I temporarily change a data set greater than 30 bytes using the CHANGE runtime option?
Answer:
You can also do multiple CHANGE commands to temporarily change a data set that is longer than 30 bytes.

For example: 
change 
OLDNAME1.VER1.VER2.VER3.VER4.VER5.LONGNAME 
to 
NEWNAME1.EXTRA1.EXTRA2.XTRA3.EXTRA4.DSNNAME 

Contents of your CHANGE 
LEFT DLM ( 
RIGHT DLM ) 
CHANGE (VER3.VER4.VER5.LONGNAME)=(XTRA3.EXTRA4.DSNNAME) 
CHANGE (XTRA3.EXTRA4.DSNNAME)=(CHG2) 
CHANGE (OLDNAME1.VER1.VER2.CHG2)=(CHG3) 
CHANGE (CHG3)=(NEWNAME1.EXTRA1.EXTRA2.CHG2) 
CHANGE (CHG2)=(XTRA3.EXTRA4.DSNNAME) 


Here are the results, 

Original JCL.. 
//JOB1234 JOB (113100000),'TEST ',CLASS=P 
//STEP1 EXEC PGM=IEFBR14 
//SYSPRINT DD SYSOUT=*
//DD4 DD DISP=SHR, 
// DSN=OLDNAME1.VER1.VER2.VER3.VER4.VER5.LONGNAME 


Results after the change: 

//JOB1234 JOB (113100000),'TEST ',CLASS=P 
//STEP1 EXEC PGM=IEFBR14 
//SYSPRINT DD SYSOUT=*
//DD4 DD DISP=SHR, 
// DSN=NEWNAME1.EXTRA1.EXTRA2.XTRA3.EXTRA4.DSNNAME