Anda di halaman 1dari 4

RE: What is positional parameter and keyword parameter and what is the

difference between them?


Positional parameters should come in an order...and key word parametes can come in any
order....

Positional ParametersA positional parameter must be placed in a specific position within


the operand field. (If you want to omit a positional parameter you must replace that
parameter with a comma.)

Example: //U99999A JOB (*) ’Mazhar’

In this example the two positional parameters are separated by a comma. The first
parameter (*) allows the system to determine accounting information from the TSO logon
userid. (Accounting information is always positioned as the first parameter following the
job name field.) The second parameter 'Mazhar' is the user’s name.

here if you dont want to use the user name and want to code CLASS parameter like then
u need to leave a comma like this

//U99999A JOB (*) CLASS A << Observe two commas after (*)

Keyword ParametersKeyword parameters have no special position or order within the


operand field. However they follow any required positional parameters within a job
statement. A keyword is entered followed by an equal sign and a value.

Example:

TIME (1 30)

This parameter contains the keyword TIME followed by an equal sign and two values in
parentheses. (This example instructs the computer that the CPU should not process the
job for longer than one minute and 30 seconds.)

Is this answer useful? Yes | No

Related Questions
What is the meaning of keyword in JCL? What is its opposite?
A keyword in a JCL statement may appear in different places and is recognized by its
name, eg. MSGCLASS in the JOB statement. The opposite is positional words, where
their meaning is based on their position
Latest Answer : positional and keyword parameters comes to jcl statements keyword
means for information ...
Read Answers (3)
Answer Question Subscribe
Describe the JOB statement, its meaning, syntax and significant keywords?
The JOB statement is the first in a JCL stream. Its format is // jobname, keyword JOB,
accounting information in brackets and keywords, MSGCLASS, MSGLEVEL, NOTIFY,
CLASS, etc.
Latest Answer : Need for job statement: To identify the job with job name and the person
who submitted the job,specify which class the job is belonging to using class parameter
,specify how the output shoud be handled using msgclass, etc and it is the first
statement ...
Read Answers (2)
Answer Question Subscribe
Describe the EXEC statement, its meaning, syntax and keywords?
The EXEC statement identifies the program to be executed via a PGM=program name
keyword. Its format is //jobname EXEC PGM=program name. The PARM= keyword can
be used to pass external values to the executing
Latest Answer : EXEC statement refers to a PROGRAM or a PROCEDURE to be
executed Syntax: //stepname   EXEC  PGM=pgm-name,parametersOR
//stepname    EXEC   procedure-name,parametersParameters
are1.Positional(pgm-name,procedure name)Â 2.Keyword
(PARM,REGION,ACCT,COND,TIME) ...
Read Answers (4)
Answer Question Subscribe
What is a PROC? What is the difference between an instream and a catalogued PROC?
PROC stands for procedure. It is 'canned' JCL invoked by a PROC statement. An
instream PROC is presented within the JCL; a catalogued PROC is referenced from a
proclib partitioned dataset.
Latest Answer : I believe most give you the flavor of what it is. One of the main reasons
for using a PROC is so that you can supply substitution variables. For example if you use
a PROC to install software, you might supply a variable like &HLQ so that ...
Read Answers (9)
Answer Question Subscribe
What is the difference between a symbolic and an override in executing a PROC?
A symbolic is a PROC placeholder; the value for the symbolic is supplied when the
PROC is invoked, eg. &symbol=value. An override replaces the PROC's statement with
another one; it substitutes for
Latest Answer : Symbolic parameters are placed in the EXEC statements , and during
compilation of the JCL, will replace the value. A typical use of Symbolic variables is, we
can write generic PROC to be executed in various test and production regions by using
Symbolic ...
Read Answers (2)
Answer Question Subscribe
What is RESTART? How is it invoked?
RESTART is a JOB statement keyword. It is used to restart the job at a specified step
rather than at the beginning.
Latest Answer : Restart is a keyword which is used in mainframes to restart the perticular
step in the job at not the begining ...
Read Answers (3)
Answer Question Subscribe
What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?
DISP=OLD denotes exclusive control of the dataset; DISP=SHR means there is no
exclusivity.
Latest Answer : DISP=OLD --> Exclusive HOLD. Read from beginning of dataset. But if
u write, then it will overwrite on existing data. i.e old data is lost. DISP=MOD -->
Exclusive HOLD. You can write to the end of the file without loosing your old ...
Read Answers (1)
Answer Question Subscribe
What are the keywords associated with DCB? How can you specify DCB information?
What is the OS precedence
What are the keywords associated with DCB? How can you specify DCB information?
What is the OS precedence for obtaining that DCB information, ie. where does the
system look for it first?
The keywords associated with the DCB parameter are LRECL, RECFM, BLKSIZE and
DSORG. The DCB information can be supplied in the DD statement. The sysem looks
for DCB information in the program code first.
Read Answers (1)
Answer Question Subscribe
What is the meaning of the EXEC statement keyword, COND? What is its syntax?
COND specifies the conditions for executing the subsequent job step. The value after the
COND= is compared to the return codes of the preceding steps and if the comparison is
true, the step is bypassed.
Latest Answer : In exec statement the condition is used for by-passing the perticular step
through the condition,if COND=0 Its a successfull executionif COND=4 Its a warning if
COND=8 Its a serious errorif COND=16 Its a fatal error.So that we can use this condition
key ...
Read Answers (2)
Answer Question Subscribe
What is the purpose of the PARM keyword in the EXEC statement?
The value after the PARM= specifies control information to be passed to the executing
program of the job step.
Latest Answer : It is only used for to pass the values by JCL to the perticular application
program like COBOL program. ...
Read Answers (4)

Anda mungkin juga menyukai