How do you code Cobol to access a parameter that has been
defined in JCL?
Answers were Sorted based on User's Feedback
Answer / shan
Ff it is SYSIN input in JCL,
ACCEPT <VARIABLE> FROM SYSIN
If it parameter is give through PARM, then COBOL program
should recieve through LINKAGE SECTION
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / lynn ertell
Apparently you cannot use the ACCEPT verb against the
LINKAGE parameters if you are already using SYSIN.
It's either one or the other but not both.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / harish
environemnt division
file1 assign to ddname
file2 assign to ddname
for this in JCL //DDNAME DD DSN.......
LINKAGE SECTION
01 LN-LEN PIC S9(4) COMP.
01 X PIC X
01 Y PIC X
IN JCL THROUGH PARM (MAX 1 TO 100 CHAR)
procedure division.
ACCEPT X
ACCEPT Y.
IN JCL THROUGH SYSIN DD*
pls correct me if anything wrong
HARISH POOMGAME SHIVAPPA(hassan,karnataka)
NIIT TECHNOLOGY
KOLKATA
| Is This Answer Correct ? | 2 Yes | 4 No |
wht r the advantages of 77 level number ?
What is the Importance of GLOBAL clause According to new standards of COBOL?
HI THIS IS ANIL. HOW TO PASS A RECORDS OF A FILE(PS OR PDS) TO AN ARRAY?
) what is the difference between AID and HANDLE AID?
Have you code any new programs in COBOL ? What is the functionality of the programs?
What are options have been removed in COBOL 11?
Is It Possible to Update or change in VIEW Mode?
What are the situations u have used in ur project for Subcript and Index ? 1.if u use Subscript why not Index,why u choose Subscript only? 2.if u use Index why not Subscript,what abt Displacement?
for an INITIALIZE and what keyword allows for an override of the default.
can we use go to statement inline-perform?
how we rectify soc7 and soc4 errors in project?
I have a sequential file. How do I access a record in this sequential file randomly in my program ?