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
 

 

Data movement error

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
View previous topic :: :: View next topic  
Author Message
santoshpatha-83

New User


Joined: 02 Apr 2007
Posts: 5
Location: noida

PostPosted: Thu Apr 12, 2007 12:57 pm    Post subject: Data movement error
Reply with quote

hi,
can any one please tell me, can i move the variable having a pic value s9(9)v9(6) comp3 which has a value 999999999.999999 can it be passed to a variable with pic value s9(9)v9(4).
Back to top
View user's profile Send private message

santoshpatha-83

New User


Joined: 02 Apr 2007
Posts: 5
Location: noida

PostPosted: Thu Apr 12, 2007 12:58 pm    Post subject:
Reply with quote

hi,
does the above query give soc7 abend
Back to top
View user's profile Send private message
ragganga

New User


Joined: 22 Jan 2007
Posts: 18
Location: bangalore

PostPosted: Thu Apr 12, 2007 2:57 pm    Post subject:
Reply with quote

Hi Santosh,

First tell me how can you store the value which has dot in between, then we will talk about moving.

Dot is Edit picture class, we are using only to display output

Regards
Raghu
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Thu Apr 12, 2007 3:12 pm    Post subject:
Reply with quote

Assuming the actual data does not contail the actual decimal point character, yes, you can do the move and, no, it will not S0C7.
Back to top
View user's profile Send private message
santoshpatha-83

New User


Joined: 02 Apr 2007
Posts: 5
Location: noida

PostPosted: Thu Apr 12, 2007 4:01 pm    Post subject: Re: Data movement error
Reply with quote

03 WS-MIN-VALUE PIC S9(9)V9(6) COMP-3.
03 WS-INPUT-VALUE PIC S9(9)V9(4).

MOVE 999999999.999999 TO WS-MIN-VALUE.

MOVE WS-MIN-VALUE TO WS-INPUT-VALUE----when i do this would i get soc7
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 12, 2007 4:04 pm    Post subject:
Reply with quote

If you are not satisfied with the responses above, why not code it up and try for yourself, and let us know what the result was.
Back to top
View user's profile Send private message
ragganga

New User


Joined: 22 Jan 2007
Posts: 18
Location: bangalore

PostPosted: Thu Apr 12, 2007 4:36 pm    Post subject:
Reply with quote

Hi Santosh,

Yes you will get SOC7 error.

Remove the decimal point (999999999999999) then move into
WS-MIN-VALUE, you don't get SOC7 error but the Pic clause for
WS-INPUT-VALUE what you mentioned above the DATA will truncate.

The Value after the move into WS-INPUT-VALUE will be 9999999999999

Regards
Raghu
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 -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Sorting group data rajella DFSORT/ICETOOL 2 Sun Jan 22, 2017 11:32 pm
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am


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