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
How many maximum base registers we can have in a single program?
How is data passed from a calling program to an assembler called program?
Ap wkur,=p5 where wkur is a label?
Explain the difference between various read and find statement?
What does the following code do? Ap wkur,=p5 where wkur is a label?
Explain about maximum displacement?
how to initialize a register to 0000?
What is maximum displacement and how to cross this limit?
Explain the difference between various read and find statement and which one should be used when for better adabas performance?
What will happen if we drop the base register in the program which contains only one basereg?
Explain about house keeping in assembler?
How to pass the parameters from jcl to assembler program?
Explain the difference in data type "x" and "p"?
Explain how to pass instream data in sysin with assembler?
Explain how to produce soc7 abend?