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
 
Redefine display clause by comp-3

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Hemant B.

New User


Joined: 05 Oct 2006
Posts: 8

PostPosted: Thu Oct 05, 2006 2:40 pm    Post subject: Redefine display clause by comp-3
Reply with quote

i have a data variable having pic clause s9(7)v9(2).
can i redefine above data type by another one mentioning
s9(9) comp-3.
Back to top
View user's profile Send private message

parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Thu Oct 05, 2006 3:24 pm    Post subject:
Reply with quote

Hi Hemant,

Yes you can redefine display items with comp-3.
But, I am afraid, when you use the values in your programmer, it will not give you expected results.

Always remember, redefines clause just makes the variable to start from the same locations in the memory nothing else! It doesn't make sure that the data type conversion happens automatically.

Happy redefining!!!
Back to top
View user's profile Send private message
surya_pathaus

Active User


Joined: 28 Aug 2006
Posts: 110

PostPosted: Thu Oct 05, 2006 3:32 pm    Post subject: Re: Redefine display clause by comp-3
Reply with quote

Hi,

Redefines will not give any problem. But Redefined field will not hold actual data.
Back to top
View user's profile Send private message
GIRIRAJ

New User


Joined: 26 Sep 2006
Posts: 1
Location: PUNE

PostPosted: Thu Oct 05, 2006 5:51 pm    Post subject: Re: Redefine display clause by comp-3
Reply with quote

yes u redefine
Back to top
View user's profile Send private message
surya_pathaus

Active User


Joined: 28 Aug 2006
Posts: 110

PostPosted: Thu Oct 05, 2006 6:09 pm    Post subject: Re: Redefine display clause by comp-3
Reply with quote

Hi,

For example s9(7)v9(2) field contain 3333333.33
If it is redefined with s9(9) comp-3 then this field will contain 3 3 3 3.
I am not sure why it is giving the above value.
But when I tested this I got the above value.
Back to top
View user's profile Send private message
Hemant B.

New User


Joined: 05 Oct 2006
Posts: 8

PostPosted: Fri Oct 06, 2006 3:57 pm    Post subject: thanx
Reply with quote

thanx
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Binary to display characters Roy Ware SYNCSORT 3 Tue Sep 19, 2017 8:46 pm
No new posts DB2 NULL Values display V S Amarendra Reddy DB2 3 Thu Sep 07, 2017 6:59 pm
No new posts Suppress value reported by BREAK in D... Learncoholic DFSORT/ICETOOL 3 Wed Aug 16, 2017 6:03 pm
No new posts Display upon console bipinpeter COBOL Programming 1 Thu Jun 22, 2017 12:35 am
No new posts Easytrive Redefine vidyaa CA Products 4 Mon Jun 19, 2017 6:01 pm

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