Using JCLNEAT Global String Replacement (GSR) - Deleting and Adding JCL statements
search cancel

Using JCLNEAT Global String Replacement (GSR) - Deleting and Adding JCL statements

book

Article ID: 31139

calendar_today

Updated On:

Products

JCLCheck Workload Automation

Issue/Introduction

How to use the JCLNeat GSRCNTL to replace a data set name, and add a concatenated library.

Current JCL:

//ABC JOB 12345,H,MSGCLASS=X,CLASS=K
//JOBLIB DD   DISP=SHR,DSN=MYLIB1
//S1     EXEC PGM=MYPGM

 

 

Environment

Release: All
Component: JCLCheck Workload Automation

Resolution

Run JCLNeat using the following control statements: 

//GSRCNTL  DD *
|JOBLIB|DELT|DD
|JOB|INSA|JOB
|//JOBLIB DD DISP=SHR,DSN=MY.NEWLIB
|JOB|INSA|
|// DD DISP=SHR,DSN=MY.NEWLIB2|
/*

Re-formatted JCL:  

//ABC JOB 12345,H,MSGCLASS=X,CLASS=K
//JOBLIB DD   DISP=SHR,DSN=MY.NEWLIB
//       DD   DISP=SHR,DSN=MY.NEWLIB2
//S1     EXEC PGM=MYPGM

 

 

Additional Information

Global String Replacement:

Global String Replacement