How we can retrieve the instream data in SYSIN ?
Answer Posted / amarnadh reddy
Use Accept in procedure division.
Example :
WORKING-STORAGE SECTION.
01 empno. Pic x(05).
01 empname pic x(15).
01 empsal pic 9(10).
PROCEDURE DIVISION.
................
PERFORM ACCEPT-PARA.
..............
ACCEPT-PARA.
ACCEPT EMPNO.
ACCEPT EMPNAME.
ACCEPT EMPSAL.
In JCL :
...........
............
//sysin dd *
001
aaaa
330000
/*
| Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
What is house keeping in assembler?
Explain how to produce soc7 abend?
What does the following code do? Ap wkur,=p5 where wkur is a label?
Explain the difference between various read and find statement and which one should be used when for better adabas performance?
How to pass the parameters from jcl to assembler program?
Explain the difference in data type "x" and "p"?
Explain about maximum displacement?
What is icm instruction?
How are data passed from jcl parm to assembler program?
What is the use of trt instruction?
how to initialize a register to 0000?
How do you round the addition or subtraction of two numbers in assembler?
What is maximum displacement?
Explain how to access vsam file?
how to pass the parameters from jcl to assembler pgm?