How we can retrieve the instream data in SYSIN ?
Answers were Sorted based on User's Feedback
Answer / 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 |
What will happen if we drop the base register in the program which contains only one basereg?
What is the use of TRT instruction and how it is working?
Can we use an equated value as operand for an MVC instruction? Reason for the same
How are data passed from JCL parm to assembler program. And how is data passed from a calling program to an assembler called program.
What is icm instruction?
Explain how to produce soc7 abend?
about maximum displacement and how to cross this limit.
Explain how to pass instream data in sysin with assembler?
explain icm instruction?
Why do we use "drop"?
How is data passed from a calling program to an assembler called program?
How we can retrieve the instream data in SYSIN ?