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

I have a variable of A X(9) initialized with spaces.


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mohandotb

New User


Joined: 06 Aug 2006
Posts: 1

PostPosted: Sun Aug 06, 2006 10:38 pm
Reply with quote

I redefined variable A as a variable B 9(9).

Now I move B to C 9(9)

What happens in this case.
Back to top
View user's profile Send private message
prashanth1

New User


Joined: 27 Sep 2006
Posts: 47
Location: Hyderabad

PostPosted: Thu Oct 12, 2006 5:12 pm
Reply with quote

my understandings for the given problem is


C contain the value of B.


Pls Correct Me , If I Wrng icon_smile.gif
Back to top
View user's profile Send private message
azshukla

New User


Joined: 31 May 2006
Posts: 9
Location: Pune

PostPosted: Fri Oct 20, 2006 1:13 pm
Reply with quote

when you are redefining a variable, as here you are redefining A as B , both A and B will be pointing to the same address space.. so what ever is the value is there in that addressspace will be present in both the variables A and B. Now if you are moving it in C, address apcae of C wil also have the same value.. means at the end all three variable will have the same value.
redefining in working storage works same as SET ADDRESS OF in procedure division.
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 -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts leading spaces can be removed in trai... DFSORT/ICETOOL 1
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts Cobol program with sequence number ra... COBOL Programming 5
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
Search our Forums:

Back to Top