Does this mean the starting position is 62, the length is 4 and the format is BI? BI implies that the values are all positive. FI would be used if the values can be positive or negative.
If the starting position is 62, why are you using a starting position of 1?
A 4-byte BI field can result in up to 10 digits so:
should work where p is the correct starting position. But:
would also work and you said it didn't (for DFSORT, TO=ZD and TO=ZDF are equivalent and the default output length for 4,BI would be 10).
It would have helped if you'd shown the input values in hex and the expected output values. Please do that (3 or 4 values are sufficient).
What exactly do you mean by it didn't work (error messages, incorrect output values?). What output did you get when you tried this? What output did you expect? Are your values all positive or can they be positive and negative? What messages did you receive? Did you use the correct starting position (62? 1?)? Is the RECFM of the input file FB or VB?
Starting position is 62 only. Sorry i mentioned 1 instead of 62.
RECFM of the input file is FB.
All the Input values are POSITIVE values(account numbers).
I am getting the copy of input data. Values were not changed.Got the same values to the output file.
I tried with above methods but still values were not changed,got the copy of input data only.
I have trid using ICETOOL and DFSORT both were not worked to me..
If that's not what you want, then you need to describe more exactly what you do want. If it is what you want, but "it doesn't work", then show the JCL, control statements and //SYSOUT messages, and/or the input (hex values) and expected output.