Test Job Preparation
Test Job Preparation
STEPS TO BE FOLLOWED:
IDCAMS:
IEFBR14
IEFBR14 is a dummy utility. It's function is to do what disposition parameter DD says.
You can
1. Creating Datasets
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
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.
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
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.
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
/*
//
//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.
2. Internal sort uses workfiles while external sort uses the DFSORT mechanism.
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