|
|
| Author |
Message |
abin
Active User
Joined: 14 Aug 2006 Posts: 169
|
|
|
|
Hi,
I have two variables with following definition
| Code: |
01 WS-COMP3 PIC 9(006) COMP-3.
01 WS-ALPHA PIC X(006) VALUE SPACES. |
The following code is working without any issues.
| Code: |
| MOVE WS-ALPHA TO WS-COMP3 |
Could some body please explain this behaviour. I'm using COBOL for OS/390 & VM RELEASE 2.2 PP 5648-A25. |
|
| Back to top |
|
 |
References
|
|
 |
dbzTHEdinosauer
Senior Member
Joined: 20 Oct 2006 Posts: 1671 Location: germany
|
|
|
|
if this is not part of the 'NOT ALLOWED QUESTIONS' it should be.
Abin, this topic was thoroughly trashed last couple of weeks. Same topic. look at the mainframe cobol threads for the last few weeks. |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 9176 Location: 221 B Baker St
|
|
|
|
Hello,
As Dick B mentioned, this topic has been beaten to death recently (as well as in the past).
The following is a bit of a heads-up on posting style:
| Quote: |
| The following code is working without any issues. |
Does this simply mean that there is no abend? What have you done to verify that it "works"? Posting the actual verification results for this type of question is more useful than saying "it works".
| Quote: |
| Could some body please explain this behaviour. |
If it is working, what behaviour needs an explanation?
The way you present your question quite often determines how many replies are posted and how useful they are. |
|
| Back to top |
|
 |
Anuj D.
Global Moderator
Joined: 22 Apr 2006 Posts: 2350 Location: Mumbai, India
|
|
| Back to top |
|
 |
abin
Active User
Joined: 14 Aug 2006 Posts: 169
|
|
|
|
Hi All,
Thanks for the comments and sorry for not serachig the past post. When somebody showed me that you can actually move alpha values into a comp-3, i practically went mad.
| Quote: |
| Does this simply mean that there is no abend? What have you done to verify that it "works"? Posting the actual verification results for this type of question is more useful than saying "it works". |
What I meant by it is working fine is it is not abending. this made me crazy and when I saw that when alpha is moved to comp-3 and comp-3 is getting some numeric value i bacame more mad . Now I know the reason. And I'm reading simillar posts.
Thanks for the help  |
|
| Back to top |
|
 |
Anuj D.
Global Moderator
Joined: 22 Apr 2006 Posts: 2350 Location: Mumbai, India
|
|
|
|
Hi,
Not to worry..BTW
| abin wrote: |
| i practically went mad. |
how are you now..  |
|
| Back to top |
|
 |
abin
Active User
Joined: 14 Aug 2006 Posts: 169
|
|
|
|
Hi Anuj,
Now I'm relieved  |
|
| Back to top |
|
 |
|
|