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  


about ICM instruction.

4 Answers   EDS,


Explain the difference between various read and find statement?

0 Answers  


explain about maximum displacement and how to cross this limit?

0 Answers   IBM,


How do you initialize a register to 0000?

10 Answers   HCL,






What is need of start 0? In steed of can we use anyother numerics? If we use what will happen?

0 Answers  


How we can Pass the parameters from JCL to assembler Pgm?

4 Answers   Tech Mahindra,


Why do we use "drop"? What does "using" do?

4 Answers  


How are data passed from jcl parm to assembler program?

0 Answers  


How to pass instream data in sysin with Assembler?

2 Answers   ANZ, IBM,


How to pass the parameters from jcl to assembler program?

0 Answers  


Explain how to initialize a register to 0000?

0 Answers  


Categories