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
 
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 Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Having a problem FTP'ng to the MF pahiker All Other Mainframe Topics 2 Fri Nov 10, 2017 8:20 pm
No new posts Move from Comp3 variable to Edited Va... Revathy.nair0485 COBOL Programming 7 Fri Nov 03, 2017 3:30 pm
This topic is locked: you cannot edit posts or make replies. Can a alphanumeric data be moved to a... nico_neoz COBOL Programming 10 Mon Oct 30, 2017 8:28 am
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am

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