Can you code instream data in a PROC ?

Answer Posted / pradeep

Jerin Jose,

The Question does not say that the instream data is passed
thru an Instream Proc. If only Instream proc is used, SYSIN
is not possible and the data can only be passed thru' a
PARM in the step. But, if Cataloged Prod is used, then the
SYSIN can be very much used to pass a Instream data.

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?

1195


Explain the function of dd name parameter with a 2 part structure; audit.report?

1195


What are some jcl statements that are not allowed in procedures?

952


How to execute 2nd and 4th steps among 5 steps in jcl proc?

959


Is it possible to left uncode disp?

903


How to do automated restart when a job abend?

1005


what EXEC statement is and what is the syntax of EXEC statement used in JCL?

872


Is automatic restart possible in jcl?

937


how do you code a null statement?

1008


What are the parameter we cannot use in procedure?

819


Mention the types of job control statements?

907


what is a jcl?

867


WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375

1249


Explain about LMQUERY�give a dialog information about a data set

1095


I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.

1978