FRANSISCUS KAURRANY wrote: >Does anyone know how to conver using DFSORT from binary fields into >zoned decimal or packed decimal? >Normally form Hexadecimal we use OUTREC with PD,M11 or any other format.
The general form for converting from one format to another with DFSORT's INREC, OUTREC or OUTFIL statement is: p,m,f,TO=fo<,LENGTH=n> So if you want to convert a binary input field to zoned decimal, you would use: p,m,BI,TO=ZD To convert a binary input field to packed decimal, you would use: p,m,BI,TO=PD BI assumes all of the values are positive (e.g. X'FFFF' = 65535). If the field can have negative values (e.g. X'FFFF' = -1), then you'd use FI instead of BI, e.g. p,m,FI,TO=ZD p,m,FI,TO=PD If the input field is actually packed decimal, you'd use PD, e.g. p,m,PD,TO=ZD For some more information on this, see: http://www.ibm.com/servers/storage/support/software/sort/mvs/beyond_sorting/online/srtmboft.html#ocv If you need more specific help, feel free to e-mail me ([EMAIL PROTECTED]) with the details. Frank Yaeger - DFSORT Team (IBM) Specialties: ICETOOL, IFTHEN, OVERLAY, Symbols, Migration => DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort/ ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

