IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

COBOL issues (OCCP) - Please help me


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pavanreddy_mf

New User


Joined: 15 Oct 2006
Posts: 1

PostPosted: Sun Oct 15, 2006 11:00 pm
Reply with quote

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
View user's profile Send private message
VINOD KUMAR SINGH

New User


Joined: 18 Oct 2006
Posts: 2

PostPosted: Wed Oct 18, 2006 4:47 pm
Reply with quote

Ans2. we can't use redefines in the first variable declared in a section.
Back to top
View user's profile Send private message
VINOD KUMAR SINGH

New User


Joined: 18 Oct 2006
Posts: 2

PostPosted: Wed Oct 18, 2006 4:50 pm
Reply with quote

Ans 4. Dataset names are specified in dd statement in jcl.
Back to top
View user's profile Send private message
madhumr
Warnings : 1

New User


Joined: 18 Oct 2006
Posts: 7
Location: bangalore

PostPosted: Wed Oct 18, 2006 6:06 pm
Reply with quote

what vinod said is right
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top