8/12/2019 Jcl Training Class 002
1/43
www.mainframes-online-training.weebly.com Polsani Anil Kumar
IBM MAINFRAMES
Job control Language(JCL) - 02
http://www.mainframes-online-training.weebly.com/http://www.mainframes-online-training.weebly.com/http://www.mainframes-online-training.weebly.com/8/12/2019 Jcl Training Class 002
2/43
JCL utilities
JCL UTILITIES are pre-written program supplied by IBM
Using this utilities we can do many operations by submitting a JB
!his helps in remo"ing manual interruption which may cause
during e#ecution $obs
8/12/2019 Jcl Training Class 002
3/43
List Of Utilities
8/12/2019 Jcl Training Class 002
4/43
IEFBR14
J%& to allocate the new data set and delete a data set
''())*+,%& JB */012P&)A3I413!I(567)5)UI8
'')!9P:: 9;9% P
'')5)U! 88 )5)U!6>
'')5)8UMP 88 )5)U!6>
''88 88 8)36())*+,.P&)A3I.9MP(I&91
'' 8I)P639?1%A!&
8/12/2019 Jcl Training Class 002
5/43
IEFBR14
''())*+,%& JB */012P&)A3I413!I(567)5)UI8
'')!9P: 9;9% P
'')5)U! 88 )5)U!6>'')5)8UMP 88 )5)U!6>
''88 88 8)36())*+,.P&)A3I.%BP
8/12/2019 Jcl Training Class 002
6/43
IEFBR14 TO DELETE A DATASET
''())*+,%& JB */012P&)A3I41 3!I(567)5)UI8
'')!9P*: 9;9% P
'')5)U! 88 )5)U!6>'')5)8UMP 88 )5)U!6>
''88 88 8)36())*+,.P&)A3I.%BP
8/12/2019 Jcl Training Class 002
7/43
8/12/2019 Jcl Training Class 002
8/43
IEBCOPY
!o copy P8) data set to P8) data set.
''())*+,%& JB */012P&)A3I41 3!I(567)5)UI81=9
'')5)8UMP 88 )5)U!6>
'')5)U! 88 8)36())*+,.P&)A3I.%B&18I)P6)=
'')5)U!* 88 8)36())*+,.P&)A3I.%B&.BA%KUP1
'' 8I)P639?1%A!&
8/12/2019 Jcl Training Class 002
9/43
IEBCOPY
!o copy P8) data set to P8) data set.
''())*+,%& JB */012P&)A3I41 3!I(567)5)UI81=9
'')5)8UMP 88 )5)U!6>
'')5)U! 88 8)36())*+,.P&)A3I.%B&18I)P6)=
'')5)I3 88 >
%P5 I3886)5)U!1U!886)5)U!
''
Used to compress the data set to regain the space
8/12/2019 Jcl Training Class 002
10/43
IEBCOPY
!o selecti"ely copy P8) members to the another P8).
''())*+,%& JB */012P&)A3I41 3!I(567)5)UI81=9
'')5)8UMP 88 )5)U!6>'')5)U! 88 8)36())*+,.P&)A3I.%B&18I)P6)=
'')5)U!* 88 8)36())*+,.P&)A3I.%B&.BA%KUP1
'' 8I)P639?1%A!&
8/12/2019 Jcl Training Class 002
11/43
IEBCOMPR
To compare Data sets
/'())*+,%& JB */012P&)A3I413!I(567)5)UI8
'')!9P: 9;9% P
'')5)U! 88 )5)U!6>'')5)8UMP 88 )5)U!6>
'')5)U! 88 8)36())*+,.P&)A3I.%B&18I)P6)=
'')5)U!* 88 8)36())*+,.P&)A3I.%B&.BA%KUP18I)P6)=
'')5)I3 88 >
%MPA=9 !5P=
8/12/2019 Jcl Training Class 002
12/43www.mainframes-online-training.weebly.com Polsani Anil Kumar
SORTInternl s!rt n" E#ternl
S!rt
http://www.mainframes-online-training.weebly.com/http://www.mainframes-online-training.weebly.com/http://www.mainframes-online-training.weebly.com/8/12/2019 Jcl Training Class 002
13/43
COBOL SORT
!he %B& SORTstatement is used in the PROCEDURE DIVISIONto
place records from an input file in a temporary worE file
where their order will be rearranged. !his worE file is referred to as the sortwork file.
nce rearranged1 the records can be placed bacE in the original input file1
placed in a separate output file
8/12/2019 Jcl Training Class 002
14/43
DATA DI$ISION entries
)8 )=!-(I&9.
: )=!-=9%=8.
:* PI% ;*:0.
:* )=!-K95 PI% ;,0.
:* PI% ;/:0.:* )=-U3I!) PI% FFF.
:* PI% ;,0.
:* )=-%)! PI% F,0GFF.
)8 )tands for )ort 8escription
8/12/2019 Jcl Training Class 002
15/43
PROCEDURE DI$ISION stte%ent
)=! ?=K-(I&9
A)%938I3< K95 I) )=!-K951
U)I3< I3PU!-(I&91
8/12/2019 Jcl Training Class 002
16/43
JCL SORT
SORT
!he )=! program is used to sort data into a certain seHuence or to
merge from * to :: pre"iously sorted input data sets into outputdata set
)53!A;
)ort fields 6 position 1length 1format 1seHuence0
8/12/2019 Jcl Training Class 002
17/43
8/12/2019 Jcl Training Class 002
18/43
8/12/2019 Jcl Training Class 002
19/43
8/12/2019 Jcl Training Class 002
20/43
8/12/2019 Jcl Training Class 002
21/43
8/12/2019 Jcl Training Class 002
22/43
8/12/2019 Jcl Training Class 002
23/43
8/12/2019 Jcl Training Class 002
24/43
8/12/2019 Jcl Training Class 002
25/43
8/12/2019 Jcl Training Class 002
26/43
8/12/2019 Jcl Training Class 002
27/43
8/12/2019 Jcl Training Class 002
28/43
8/12/2019 Jcl Training Class 002
29/43
8/12/2019 Jcl Training Class 002
30/43
8/12/2019 Jcl Training Class 002
31/43
8/12/2019 Jcl Training Class 002
32/43
8/12/2019 Jcl Training Class 002
33/43
8/12/2019 Jcl Training Class 002
34/43
8/12/2019 Jcl Training Class 002
35/43
8/12/2019 Jcl Training Class 002
36/43
8/12/2019 Jcl Training Class 002
37/43
8/12/2019 Jcl Training Class 002
38/43
8/12/2019 Jcl Training Class 002
39/43
8/12/2019 Jcl Training Class 002
40/43
8/12/2019 Jcl Training Class 002
41/43
8/12/2019 Jcl Training Class 002
42/43
8/12/2019 Jcl Training Class 002
43/43
T&AN' YOU
Top Related