Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

COBOL issues (OCCP) - Please help me

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: COBOL issues (OCCP) - Please help me
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    Post subject:
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    Post subject:
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    Post subject: Re: COBOL issues (OCCP) - Please help me
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts ODPP(Optim Data privacy Provider) Iss... Rama kishore IBM Tools 1 Mon Nov 07, 2016 5:46 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us