View previous topic :: View next topic
|
Author |
Message |
pavanreddy_mf
New User
Joined: 15 Oct 2006 Posts: 1
|
|
|
|
Please help me on the following issue
I was asked to analyze some production COBOL programs.
As per the inputs provided the program is a batch program. Client has given the JCL name but no where the given program is being executed in the JCL. Using the comments I understood that the given program is being executed by some other program named OCCP in the JCL.
In the COBOL program Linkage section is having some 10 copy books. In the first copy book which is coded immediately after LINKAGE SECTION. The variable lk-work declared as follows 01 LK-WORK REDEFINES DFHCOMAREA. I believe this program is not being called by CICS because it is using DISPLAY statements.
The program is reading and writing some files using some other subprogram
This program is passing the DD card names and record variables to sub program to read or write a file.
Please clarify me on the following if you have any idea.
1. What is OCCP is there any utility with name OCCP or it is an internal program.
2. Can we use redefines in the first variable declared in a section
3. How can we use DFHCOMAREA in a batch program.
4. I did not understand where the dataset names are specified to read or write the files.
Please help me if you have any idea.
Thanks & Regards
Pavan Reddy N |
|
Back to top |
|
|
VINOD KUMAR SINGH
New User
Joined: 18 Oct 2006 Posts: 2
|
|
|
|
Ans2. we can't use redefines in the first variable declared in a section. |
|
Back to top |
|
|
VINOD KUMAR SINGH
New User
Joined: 18 Oct 2006 Posts: 2
|
|
|
|
Ans 4. Dataset names are specified in dd statement in jcl. |
|
Back to top |
|
|
madhumr Warnings : 1 New User
Joined: 18 Oct 2006 Posts: 7 Location: bangalore
|
|
|
|
what vinod said is right |
|
Back to top |
|
|
|