Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
1 - Why post in JCL & VSAM - this is not a JCL or VSAM problem but a Syncsort problem?
2 - Why not post in the Syncsort section of the forum as it is a Syncsort question?
3 - Why - after 14 years as a member, do you not use the code tags for your code?
4 - topic moved.
The possible max number of digits in the input value is 5. Only 4 of them will be displayed, the high order digit just silently disappears...
Instead of 12345 you’ll get: 234.5
Apologies for not tagging the question against syncsort .
Used the OUTREC BUILD=(1,5,SFF,EDIT=(SIIT.T),SIGNS=(,-),LENGTH=5)
But ,second record sign is removed ,
Code:
-17.2
161.3
-16.1
187.2
It should be
-161 or -161.
Two solutions are possible:
1) prohibit entering input values which do not fit the output field, or
2) adjust the output field to enough number of possible input digits, plus optional sign.