0% found this document useful (0 votes)
147 views5 pages

Test Job Preparation

The document provides steps for test job preparation including copying JCL to a PDS, changing source libraries and region specifications, modifying GDG names and job names. It also describes IDCAMS and IEFBR14 utilities for defining, deleting, copying datasets, setting return codes. DFSORT is described as a sort utility that can be used directly or from a program for internal or external sorting. The CLASS and MSGCLASS parameters are explained for categorizing and routing job logs.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
147 views5 pages

Test Job Preparation

The document provides steps for test job preparation including copying JCL to a PDS, changing source libraries and region specifications, modifying GDG names and job names. It also describes IDCAMS and IEFBR14 utilities for defining, deleting, copying datasets, setting return codes. DFSORT is described as a sort utility that can be used directly or from a program for internal or external sorting. The CLASS and MSGCLASS parameters are explained for categorizing and routing job logs.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

TEST JOB PREPARATION

STEPS TO BE FOLLOWED:

 Copy the jcl respective to the program to a pds and save it .


 Change the source load library in the test jcl corresponding to the program.
 There are 3 special commands
 CE-code edit.
 CB-code browse.
 CV-code view.
 Using CE option enter into JOBSYSIN of the program,there change the region
from A to C
 Change the first qualifier of GDG name to to GDGT (ie) test GDG
 Change the job name,it should not be same as original job.

IDCAMS:

The main functions of the IDCAMS mainframe utility.

 DEFINE GDG, to define Generation data group.


 DEFINE CLUSTER, to define a new VSAM data set
 DELETE, to delete data sets
 LISTCAT, to list catalog entries
 PRINT, to print a data set
 REPRO, to copy a data set
 SET, to change the condition code
 VERIFY, to verify a VSAM data set
 IMPORT
 EXPORT
IEBGENER

 Print a Sequential Data Set


 Create a Partitioned Data Set from Sequential Input
 Convert Sequential Input into Partitioned Members
 In-stream Input, Sequential Data Set to Tape Volume
 Edit and Copy a Sequential Input Data Set with Labels

IEFBR14
IEFBR14 is a dummy utility. It's function is to do what disposition parameter DD says.
You can

1. Creating Datasets

2. Deleting Datasets by Giving DISP=(MOD DELETE DELETE). The advantage it provides is


even if the dataset does not exist it will create and delete the dataset and give a low
return code as 4.

3. It is used for setting a return code to 0. Just simply Execute the IEFBR14.

Eg:
//IEFBR14 JOB ACCT 'CREATE DATASET' MSGCLASS=J CLASS=A
//STEP0001 EXEC PGM=IEFBR14
//DELDD DD DSN=xxxxx.yyyyy.zzzzz
// DISP=(NEW CATLG DELETE) UNIT=DASD

CLASS
The CLASS parameter is used to categorize the job.. For example standards

 CLASS=A to be used for small jobs,

 CLASS=G for medium-jobs,


 CLASS=R for long-running jobs.

Categorizing the jobs this way, helps the MVS operating system to easily pick up a job
for execution.

MSGCLASS

The Log-report of your Job is brought to the Output Queue area. There’s not just one
Output Queue, but there are several classes of Output Queues. MSGCLASS parameter
tells in which Output Queue,the output will be send.

 To send the Log-Report of the Job for printing to Printer, you code MSGCLASS=P.

 To send the Log-Reports for Punching, you code MSGCLASS=X.

 Log-Report, to be held on the Output Queue itself, you code MSGCLASS=Y.

the log-reports held in the Output Queue(Spool). Your Installation (project) define
different print class codes(A,B,C,D,...X,..) for different output queues.  

 The MSGLEVEL parameter is coded on the JOB Statement. It also tells, how much

level-of-detail information should be printed in the Log-report (ie) 2 pages, 3


pages, 5 pages. In other words, you can control the level of detail on the Log
Report by coding MSGLEVEL Parameter on the JOB Statement.

 A MSGLEVEL(0,1) prints only the JOB Statement. JCL Listing(JESJCL) in the Spool,
only the JOB Statement is displayed, all the detailed information is suppressed. A
MSGLEVEL=(0,1) produces the least amount of detail in the Log-report.

 A MSGLEVEL=(1,1) results in the maximum level-of-detail information to be


spitted out in the Log-Report. default it assumes a MSGLEVEL=(1,1). When the
MSGLEVEL is set to (1,1), the complete Original JCL that you’ve typed is printed
to the Log-Report.
DFSORT

DFSORT is a sort utility. It can be called directly or from a program.

external sort uses the sort product directly (e.g. PGM=SORT) whereas an internal sort
calls the sort product from a program (e.g. COBOL calls DFSORT)

//JoB ..........
//STEP01 EXEC PGM=DFSORT
//SORTSKIP DD DSN=DFC2.VENR07.GLOB.FFB.SFILE8,
//            DISP=(NEW,CATLG,DELETE),UNIT=SYSDA,
//            SPACE=(CYL,(1,4),RLSE),
//            DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)
.
.
.
.
.
//SYSIN    DD *
SORT FIELDS=1,3,CH,A),SKIPREC=N                         
/*
//

JCL sort IS ALSO KNOWN AS EXTERNAL SORT

It can be used with INCLUDE COND

//SYSIN DD *
SORT FIELDS=COPY
INCLUDE COND=(41,3,CH,EQ,C'ABC')

This means you will include only the conditions where position 41, for 3 bytes, equals
ABC. The include parameter can handle almost anything for extracting specifc rows from
your input.

INTERNAL AND EXTERNAL SORT


1. Internal sort is used in COBOL application prog while external sort is used in JCL.

2. Internal sort uses workfiles while external sort uses the DFSORT mechanism.

3. External sort is more complicated than internal sort.

4. Internal sort is more flexible as we can alter or update data before and after
performing internal sort whereas the same doesn't hold true for external sort.

Thanks

You might also like