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 Paasing symbolic parameter to instrea... Anirudh Anand JCL & VSAM 1 Thu Jul 27, 2017 1:22 pm
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts Passing data from REXX to C programme... chong.zhou All Other Mainframe Topics 0 Wed Jul 26, 2017 4:55 pm
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 9 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm


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