Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8657
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 3270 Data stream error Benchwarmer CICS 4 Tue Apr 17, 2018 12:06 am
No new posts How to list data set names with diffe... murali.andaluri CLIST & REXX 8 Thu Apr 12, 2018 11:33 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts Invalid XML character while producing... nikhil.bhole IBM Tools 4 Tue Mar 20, 2018 1:24 am
No new posts Get the list of data sets on DASD and... rakaitn JCL & VSAM 3 Thu Mar 08, 2018 12:38 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us