Henry Willard wrote on 01/28/2008 05:32:45 PM:
> BTW, the dotted decimal representation of 8520E301 is 133.32.227.1.
> 133.032.227.001 is 851AE301. Leading zeros means octal.

The original poster asked for ddd.ddd.ddd.ddd output so that's what
I showed the DFSORT statements for.  You can suppress the leading zeros
using DFSORT's SQZ function as follows:

  OPTION COPY
  INREC IFTHEN=(WHEN=INIT,
    BUILD=(1:1,1,BI,EDIT=(IIT),5:2,1,BI,EDIT=(IIT),
           9:3,1,BI,EDIT=(IIT),13:4,1,BI,EDIT=(IIT))),
   IFTHEN=(WHEN=INIT,BUILD=(1,15,SQZ=(SHIFT=LEFT,MID=C'.')))

The output for the example input I showed would then be:

5.226.19.8
133.32.227.1

Frank Yaeger - DFSORT Development Team (IBM) - [EMAIL PROTECTED]
Specialties: PARSE, JFY, SQZ, 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

Reply via email to