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
 

 

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 Display ZEDLMSG without Pressing F1 &... anandgbe CLIST & REXX 8 Thu Dec 15, 2016 4:20 pm
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm
This topic is locked: you cannot edit posts or make replies. DSList (3.4) cannot display Chinese c... jacobdng TSO/ISPF 4 Wed Oct 05, 2016 2:51 pm
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm


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