View previous topic :: View next topic
|
Author |
Message |
pecram24
New User
Joined: 12 Oct 2009 Posts: 35 Location: Chennai
|
|
|
|
what it means.. could you please elaborate your answer... |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Moving spaces to a group will always work because groups are always alphanumeric. And where in your original post did you state you were using a grouip?
Quote: |
Moving SPACES to a
COMP variable,
Signed Numeric S9(3), |
In fact, you specifically stated you were moving spaces to a COMP variable.
Perhaps if you fully and completely specified your question in the first place, you would have gotten an answer much faster. |
|
Back to top |
|
|
pecram24
New User
Joined: 12 Oct 2009 Posts: 35 Location: Chennai
|
|
|
|
okay...Thanks Robert for your help...
I didn't know about this.. (Group moves are always alphanumeric)....
anyway thanks a lot |
|
Back to top |
|
|
Ronald Burr
Active User
Joined: 22 Oct 2009 Posts: 293 Location: U.S.A.
|
|
|
|
You WOULD have known about that ( Group moves are always alphanumeric ) IF you had read the COBOL Language Reference Manual, where it explicitly says:
"A group move is treated as though it were an alphanumeric-to-alphanumeric elementary move, except that there is no conversion of data from one form of internal representation to another. In a group move, the receiving area is filled without consideration for the individual elementary items contained within either the sending area or the receiving area, except as noted in the OCCURS clause." |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
I didn't know about this.. (Group moves are always alphanumeric).... |
And now that you do know, do not move spaces to a group that contains numeric fields. . . |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
but if you INITIALIZE a group, the individual elements are correctly populated. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Robert Sample wrote: |
Quote: |
we should read between the lines and determine what the user has meant, not what the user has said. |
Dick, I had a job one time where it was documented in my annual review that one of my tasks was to read programmer's minds. I never did get rated well on that aspect of the job. |
I had a colleague who had been a test subject in the University of Edinburgh's parapsychology research program. He had an official statement from them that he could not read minds |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
That's what I needed! |
|
Back to top |
|
|
|