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

Data movement error


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
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
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
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
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: 3156
Location: Tucson AZ

PostPosted: Thu Apr 12, 2007 3:12 pm
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
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: 8798
Location: Welsh Wales

PostPosted: Thu Apr 12, 2007 4:04 pm
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
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 All times are GMT + 6 Hours
Forum Index -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts Format data from multiple records usi... SYNCSORT 4
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts Structured Data and Nested Loops via ... COBOL Programming 0
No new posts U0016 error in JCL JCL & VSAM 4
No new posts Alternate key data extracttion COBOL Programming 13
Search our Forums:


Back to Top