IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

MOVE and INITIALIZE


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pecram24

New User


Joined: 12 Oct 2009
Posts: 35
Location: Chennai

PostPosted: Fri Jan 22, 2010 6:38 pm
Reply with quote

what it means.. could you please elaborate your answer...
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jan 22, 2010 6:42 pm
Reply with quote

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
View user's profile Send private message
pecram24

New User


Joined: 12 Oct 2009
Posts: 35
Location: Chennai

PostPosted: Fri Jan 22, 2010 6:45 pm
Reply with quote

okay...Thanks Robert for your help...
I didn't know about this.. (Group moves are always alphanumeric)....
anyway thanks a lot icon_smile.gif
Back to top
View user's profile Send private message
Ronald Burr

Active User


Joined: 22 Oct 2009
Posts: 293
Location: U.S.A.

PostPosted: Fri Jan 22, 2010 7:24 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jan 22, 2010 10:00 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Jan 22, 2010 10:41 pm
Reply with quote

but if you INITIALIZE a group, the individual elements are correctly populated.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Fri Jan 22, 2010 11:03 pm
Reply with quote

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 icon_biggrin.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jan 22, 2010 11:16 pm
Reply with quote

That's what I needed!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts How to move DB2 Installation HLQ DB2 4
No new posts How to move values from single dimens... COBOL Programming 1
No new posts Reading the CSV data in COBOL and mov... COBOL Programming 4
Search our Forums:

Back to Top