Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us