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
 
I have a variable of A X(9) initialized with spaces.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
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    Post subject: I have a variable of A X(9) initialized with spaces.
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Java & MQSeries 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 Inefficient BUILD - VB records paddin... Daniel Prosser SYNCSORT 9 Thu Dec 14, 2017 3:52 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 Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm

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