Roberto Halais wrote on 01/28/2008 11:54:59 AM:
>  also a conversion for IP addresses as they are
> stored in SMF in hex format to something like xxx.xxx.xxx.xxx.

You can already convert 4-byte hex values for IP addresses to displayable
values with DFSORT.  For example if you had input records with the
following hex values in positions 1-4:

1 2 3 4   <- position
05E21308
8520E301

you could use this DFSORT job to convert them to ddd.ddd.ddd.ddd values:

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DSN=... input file
//SORTOUT DD SYSOUT=*
//SYSIN    DD    *
  OPTION COPY
  INREC BUILD=(1,1,BI,TO=ZD,C'.',2,1,BI,TO=ZD,C'.',
               3,1,BI,TO=ZD,C'.',4,1,BI,TO=ZD)
/*

For the example input, SORTOUT would have:

005.226.019.008
133.032.227.001

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