I have in input file, a variable with numeric edited format, using sort i want that the same variable is copied to output file, but , instead of numeric edited the format should be COMP-3.In pointers to this regard would be really helpful.
If you need something more specific, you have to supply more details.
COMP-3 is PD format. I don't know what you mean by "numeric edited format" so you need to show me an example of what the "numeric edited format" looks like before I can show you how to do what you want with DFSORT. Also, what length do you want for the COMP-3 (PD) output field?And what is the RECFM and LRECL of your input file?
I'm not familiar with some of your notations (zzzz? PD 5.0?).
If the input field is in the format ddddd.dddd and you want the output field as an 11-byte PD value, you can use this INREC statement:
where p is the starting position of the input field and ... indicates the other fields before and after the field to be converted.
You'll need z/OS DFSORT V1R5 PTF UQ95214 or DFSORT R14 PTF UQ95213 (Dec, 2004) in order to use DFSORT's new UFF format which handles the decimal point in the input field automatically. If you have DFSORT, but you don't have the Dec, 2004 PTF, ask your System Programmer to install it (it's free). For complete details on all of the new DFSORT and ICETOOL functions available with the Dec, 2004 PTF, see: