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

Why can only 256 bytes be moved from one address to another in a MVC?

6 Answers   CSC, HCL, IBM,


How to pass instream data in sysin with Assembler?

2 Answers   ANZ, IBM,


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

0 Answers  


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

0 Answers  


Explain how to access vsam file?

0 Answers  






how to produce SOC7 abend

1 Answers   EDS, IBM,


cobol and assembler access

2 Answers   EDS,


how to access VSAm file

2 Answers   EDS, IBM,


What is the use of trt instruction?

0 Answers  


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

4 Answers   Tech Mahindra,


How we can retrieve the instream data in SYSIN ?

2 Answers   Tech Mahindra,


Can we use MVC instruction to move pack field to pack field....which instruction you will use and why ?

4 Answers   Amdocs, IBM,


Categories