OnDemand Users Group

Archive => Other => Topic started by: DouglasSSA on November 09, 2011, 06:16:51 PM

Title: ???postprocessor parameters???
Post by: DouglasSSA on November 09, 2011, 06:16:51 PM
Has anyone ever used the ?postprocessor parameters? found in ?Load Information??


Thanks

Title: Re: ???postprocessor parameters???
Post by: Justin Derrick on November 10, 2011, 11:49:55 AM
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.
Title: Re: ???postprocessor parameters???
Post by: LWagner on November 15, 2011, 11:43:59 PM
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
}'
Title: Re: ???postprocessor parameters???
Post by: LWagner on November 16, 2011, 12:02:14 AM
Just place the full omvs or other Unix path of the script to use in the postprocessing parameter window, as in the attached image.
Title: Re: ???postprocessor parameters???
Post by: DouglasSSA on November 18, 2011, 03:08:33 PM
Thanks