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

Variable in copy book getting initialized


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nimisanand

New User


Joined: 22 Nov 2005
Posts: 24

PostPosted: Wed Sep 05, 2007 1:48 pm
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: 2146
Location: At my coffee table

PostPosted: Wed Sep 05, 2007 3:01 pm
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: 6966
Location: porcelain throne

PostPosted: Thu Sep 06, 2007 3:38 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
Search our Forums:

Back to Top