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
 

 

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 Can I traverse a STEM variable? chong.zhou CLIST & REXX 5 Wed May 31, 2017 3:54 pm
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 7 Thu Apr 27, 2017 1:15 am
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am


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