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.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More JCL Interview Questions

Please go thru the below points and let me know how to code this. 1. Sort the input dataset for the condition : Starting position is 37,length of the field is 13 based on character and in the ascending order , starting from position 25 length of 12 ,character and in the ascending order. Use a temporary dataset to hold the sorted file. 2. Use the temporary file created in the above step as the input for the next step. The next step is to execute a program and produce an output file. Use the temporary file created in the above as work file 1 and the output of the file to be created in this step work file 2.Also, pass a parameter to the program that is to be executed in this step. The parameter should have the current date in YYYYMMDD format. For the sake of convenience, you can use the below Job Name : Sample1 Input DSN : PCABDT11.CABD.TEST.INPUT Temporary DSN : Sort1 Output DSN : PCABDT11.CABD.TEST.OUTPUT Program Name : SAMPLE Thanks in Advance for your response.

2 Answers  


can we bowse or edit the GDG dataset if it is a tape entry?

4 Answers  


what happens if job falls in loop ? how to resolve it ?

3 Answers   Patni,


Are all (i), (ii), (iii), (iv) of the below are VALID to reference a temporary dataset ? STEP2 DD1 DD DSN = &&TEMP STEP3 DD2 DD (i) DSN = TEMP (ii) DSN = *.TEMP (iii) DSN = *.STEP1.DD1 (iv) DSN = *.STEP1.DD1.ONE

8 Answers   IBM,


What parameter of the job statement is used to limit the cpu time consumed by the job?

0 Answers  






How to find out the number of records in a file using JCL

5 Answers   CTS,


how many max steps can we use in a job? pls answer to my question

9 Answers   TCS,


How system will identify whether user wants to create PS or PDS? If answer is SPACE parameter then why we need to pass ps or po as dataset organisation while creation

1 Answers  


How do you restart a step in JCL?

12 Answers   HSBC,


Wrete a JCL to compare two files and mached records move to onc file & un mached rows wants to another file?

13 Answers   CGI, DSRC, IBM,


how to edit a tape dataset ? asked in wipro

1 Answers   Wipro,


A dd statement consists of 4 fields. Name them?

0 Answers  


Categories