???postprocessor parameters???

Previous topic - Next topic

DouglasSSA

Has anyone ever used the ?postprocessor parameters? found in ?Load Information??


Thanks


Justin Derrick

Yep.  In one situation on AIX, I had to run a |sort|uniq on the index values to remove duplicates that appeared in the data stream -- I think it came from the Tagged Logical elements (TLEs) in an AFP file.

Does that clear anything up?

-JD.
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Webinars:  https://CMOD.Training/
IBM CMOD Professional Services: https://CMOD.cloud

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

LWagner

I have an awk script from omvs I use on one application.

SACLWAG:/ars/tmp: >cat refmt.ppr                                     
#!/bin/ksh                                                           
######################################################################
# Script Name: refmt.ppr                                             
# Description: Reformat 5th field of input file to contain decimal   
#              (from xxxxx to xxx.xx).
#              It does not modify the first line of input file.       
# Usage      : cat <inputfile> | refmt.ppr                             
# Parameter  : input file is from stdin.                               
# Change Activitiy:                                                   
#   06/23/10 pgove - Initial code.                                     
#######################################################################
awk -F"\x05" '{                                                       
  if ( NR == 1) {                                                     
    print $0                                                           
    next                                                               
  }                                                                   
  start_c5 = length($1) + length($2) + length($3) + length($4) + 4     
  len = length($5)                                                     
  part1 = substr($0, 1, start_c5)                                     
  amount = substr($5, 1, len-2) "." substr($5, len-1)                 
  part2 = substr($0, start_c5+len+1)                                   
  print part1 amount part2
}'

LWagner

Just place the full omvs or other Unix path of the script to use in the postprocessing parameter window, as in the attached image.