Page 1 of 1

Moving a larger COMP3 field into a smaller COMP3 filed

PostPosted: Tue Jan 31, 2012 2:55 pm
by SMain
Hi ,

I have a variable defined in comp3 of length s9(09)v99 and I want to move it to another variable of length s9(11)v99

Re: Moving a larger COMP3 field into a smaller COMP3 filed

PostPosted: Tue Jan 31, 2012 3:25 pm
by enrico-sorichetti
Moving a larger COMP3 field into a smaller COMP3 filed
I have a variable defined in comp3 of length s9(09)v99 and I want to move it to another variable of length s9(11)v99


what makes You think that an s9(11)v99 <thingy> is smaller than an s9(09)v99 one ???

whatever... it should not be difficult to test what happens

Re: Moving a larger COMP3 field into a smaller COMP3 filed

PostPosted: Tue Jan 31, 2012 3:35 pm
by SMain
oops .... I want to move S9(11)v99 to S9(09)v99 .. both are comp3

Re: Moving a larger COMP3 field into a smaller COMP3 filed

PostPosted: Tue Jan 31, 2012 3:52 pm
by BillyBoyo
As long as there is nothing you mind truncating to the left, what's the problem?

Re: Moving a larger COMP3 field into a smaller COMP3 filed

PostPosted: Tue Jan 31, 2012 4:21 pm
by SMain
I'm getting SOC7

Re: Moving a larger COMP3 field into a smaller COMP3 filed

PostPosted: Tue Jan 31, 2012 4:32 pm
by prino
S0C7 has nothing to do with the move, but everything with invalid data.

Re: Moving a larger COMP3 field into a smaller COMP3 filed

PostPosted: Tue Jan 31, 2012 7:49 pm
by BillyBoyo
You can't get a S0C7 by moving a larger field with valid contents to a smaller field.