How we can retrieve the instream data in SYSIN ?

Answers were Sorted based on User's Feedback



How we can retrieve the instream data in SYSIN ?..

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

How we can retrieve the instream data in SYSIN ?..

Answer / guest

SYSIN DD *
values

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More Assembler Interview Questions

What will happen if we drop the base register in the program which contains only one basereg?

0 Answers  


What is the use of TRT instruction and how it is working?

7 Answers   HCL, IBM, Wipro,


Can we use an equated value as operand for an MVC instruction? Reason for the same

8 Answers   IBM,


How are data passed from JCL parm to assembler program. And how is data passed from a calling program to an assembler called program.

3 Answers   HCL, IBM,


What is icm instruction?

0 Answers  






Explain how to produce soc7 abend?

0 Answers  


about maximum displacement and how to cross this limit.

2 Answers   EDS,


Explain how to pass instream data in sysin with assembler?

0 Answers  


explain icm instruction?

0 Answers   IBM,


Why do we use "drop"?

0 Answers  


How is data passed from a calling program to an assembler called program?

0 Answers  


How we can retrieve the instream data in SYSIN ?

2 Answers   Tech Mahindra,


Categories