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

about ICM instruction.

4 Answers   EDS,


How do you round the addition or subtraction of two numbers in assembler? what does the following code do? AP WKUR,=P'5' where WKUR is a label

3 Answers   CSC, IBM,


how to access VSAm file

2 Answers   EDS, IBM,


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

4 Answers  


Explain the difference in data type "x" and "p"?

0 Answers  






How to pass instream data in sysin with Assembler?

2 Answers   ANZ, IBM,


change process tool( code changes from dev to prd) The changes made to your code should be effected in live. how the process takes place. that is how can you move the code changes from development to production.

1 Answers   EDS,


What is maximum displacement?

0 Answers  


Explain about house keeping in assembler?

0 Answers  


Write the fetch cycle and execute cycle for following instructions:JMPNZ (jump to the given address if the accumulator not equal to zero) RET(return from a subroutine) ADB (add the contents of register B to the accumulator and save result in the accumulator).

1 Answers  


Explain the difference between various read and find statement?

0 Answers  


What is base register?

23 Answers   IBM, Infosys,


Categories