a) PGM :- this is a positional parameter which must be coded after Exec with one blank. This parameter indicates the name of the program/utility of IBM
b)PARM :-
there are two ways to pass data
method I : using PARM:- this is a keyword parameter at activity level must be coded with Exec operand after PGM parameter. This parameter allows max (100) characters . they consists of predefined text/system defined commands.
The PARM parameter can be used to pass data to user/system defined programs
To receive PARM parameter data, Cobol peg, must be coded with “PROCEDURE DIVISION USING PARAMETERS” option. These parameters must be declared in the linkage section.
JCL:
// step001 exec PGM=cob001, PARM=”2004-10-10 date”(max 100 characters, no separator is coded and size in cobol is only the separator)
Cobol:
DD
Linkage section
01 x pic x(10). 01 y pic x(10)
d division using x,y.
1001-para
display x,y -à date 2004-10-10
stop run
method II :-
SYSIN DD * :-
SYSIN is a system defined DD name and * is the positional parameter off DD. This is used to pass data to Cobol peg/ to pass system defied commands to system defied pegs.
SYSIN DD * INSTREAM data must always be terminated with /*
Any number of records/data/character must be declared in W S S
One row in SYSIN DD * is equivoque to one accept statement
JCL :
//step001 Exec PGM=cob001
//sysin DD *
[2004-10-10
………….
………….]
/*
//(terminator/end if JCL)
cobol:-
W.S.S
01 ws=data1 pic x(10)
01 ws=data2 pic x(10)
P D
1000-para
accept ws-data1
accept ws=data2
(* if accept coded in cobol then SYSIN DD * must be coded in JCL
* if SYSIN DD * coded it is not mandatory to coded accept ).
CA 7:- (computer associates )
This tool/package can be used to schedule jobs or can be used to submitting/organizing the jobs or can be used to cancel the jobs.
This is again a setup consists of panels which in thus provides difficult options for submitting the jobs, for organizing the jobs and for cancellation of jobs also.
No comments:
Post a Comment