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

Problem in using Copybook variable


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts Trying to change copybook in online c... CICS 4
Search our Forums:

Back to Top