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
 

 

Problem in using Copybook variable

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Tarun Deep
Warnings : 1

New User


Joined: 10 Jun 2005
Posts: 10
Location: Hyderabad, India

PostPosted: Mon Jul 18, 2005 3:46 pm    Post subject: Problem in using Copybook variable
Reply with quote

I have introduced an existing copybook in my cobol program. In the copybook i have introduced a new conditional variable in place of an existing filler so as not to alter the length of the copybook.

A76316 05 ULGBLTDF-BILL-TO-DATE-FLAG PIC X(1).
A76316 88 ULGBLTDN-BILL-TO-DATE-NO VALUE '0'.
A76316 88 ULGBLTDY-BILL-TO-DATE-YES VALUE '1'.
A76316 05 FILLER PIC X(10).
APS161* 05 FILLER PIC X(11).

When ever my program encounters any of the modified copybook variables it throws out a protection error.

I am including this copybook in Linkage Section by the following command -
COPY CKULGPRM.

The calling program to my program sends this copybook and I am defining procedure division as
PROCEDURE DIVISION USING ULGPRM-UNIVERSAL-LIFE-PARMS.

The 01 level varibale of this copybook is ULGPRM-UNIVERSAL-LIFE-PARMS.

Could anyone of you throw some light on this.. I am not able to resolve this problem.

Thanks icon_smile.gif
Tarun
Back to top
View user's profile Send private message

notonly4u

New User


Joined: 26 Apr 2005
Posts: 87
Location: Hyderabad

PostPosted: Mon Jul 18, 2005 4:28 pm    Post subject:
Reply with quote

Dear Tharun,

Since yu are adding the Conditional variable, Iam confused why you need to change the filler? Hope there is not need of changing the filler length.

Moreover what kind of error message that yu are getting.

Regards
Tanden
Back to top
View user's profile Send private message
gsnvsr

New User


Joined: 06 Jul 2005
Posts: 40

PostPosted: Mon Jul 18, 2005 4:58 pm    Post subject: Re: Problem in using Copybook variable
Reply with quote

I agree!

There doesn't seem to be a need to change the filler. You'll have to just recompile the programs using this changed copybook.

Best regards,
Prasad
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 SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm
No new posts Copybook structure in Load module Vai123 COBOL Programming 7 Fri Sep 16, 2016 8:29 pm


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