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 |
RENAME clause takes new SPACE in memory.TRUE or FALSE? a)TRUE 2)FALSE
how to remove leading spaces and zeroes in a cobol variable.is there any easy way to do it
Can you please let me know the centre name of INS certification in Kolkata.
wht do u mean by (*,intrdr) wht is * used for ?
how can we code index in an array of cobol pgm?
What are the different ways to run a COBOL DB2 program using JCL?
What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?
how will u code parm parameter and where pls ?
What are the differences between OS VS COBOL and VS COBOL II?
which is faster either static call or dynamic call ? and specify the reasons for it ? reply fast
What is the file organization clause ?
How can we find out wether to declare the data items like Integer, Char,Comp? If comp types how can we decide wether it is Comp and Comp3.How it is? Please Explain... Cheers.