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
 
Variable in copy book getting initialized

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
nimisanand

New User


Joined: 22 Nov 2005
Posts: 23

PostPosted: Wed Sep 05, 2007 1:48 pm    Post subject: Variable in copy book getting initialized
Reply with quote

Hi,

I have a main program P1 (CICS). It has a input copybook C1,in which i have a variable C1-acct-id (x(8)). The main program P1 is calling a subprogram P2(COBOL), which has a input copy book C2. C2 contains a variable C2-acct-id (s9(9) comp). Before calling P2, C1-acct-id is moved to C2-acct-id and called using C2 copybook (note its a call and not link or xctl). As soon as the call is done, the C1-acct-id is getting initialized to spaces. I am not initializing C1-acct-id anywhere in the subprog as well i have not used C1-acct-id inside the prog P2.

Please let me know if there could be a reason why the C1-acct-id is getting intialized to spaces.

Regards,
Nimi
Back to top
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Wed Sep 05, 2007 3:01 pm    Post subject:
Reply with quote

Please post a (small) example of the copybooks and the call statement....
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Thu Sep 06, 2007 3:38 am    Post subject:
Reply with quote

and try using conventional computer terminology. what is an input copybook?
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts XMITIP sends it out. Can it copy on l... Rommel Dayon Rustia IBM Tools 0 Tue Sep 05, 2017 10:16 am
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Move from Comp3 variable to Edited Va... sreekusr COBOL Programming 8 Thu Aug 10, 2017 4:20 pm

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