How do you code Cobol to access a parameter that has been
defined in JCL?
Answer Posted / 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 |
Post New Answer View All Answers
) how do u code after getting data?
What is the difference between structured cobol programming and object alternativelyiented cobol?
Explain how you can characterize tables in cobol?
Write down the divisions of cobol program?
What is the compute verb? How is it used?
Define static linking and dynamic linking.
In COBOL programming, what is PERFORM? What is VARYING?
How to print 10 to 1 if the input have only 10 digit number?
How are the next sentence and continue different from each other?
How do you define a variable of comp-1 and comp-2?
What are the various section in data division and briefly explain them.
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
Write the code to count the sum of n natural numbers.
How do you get the data to code the BMS macro?