Automic Workload Automation

Remove links from transport case file

  • 1.  Remove links from transport case file

    Posted Nov 21, 2016 04:01 AM

    Here is a simple awk command that strips out all object links from a transport case file.

    awk '/^O/{if(seen==0){seen=1;print $0}} !/^O/{if (seen==1) {seen=0} print $0}' $trans > $newtrans

    When combined withucybdbld’s new -FOT option, this command can be used to load objects to a specific location and nowhere else, regardless of whether the objects already exist (even in a different location) in the target system. I originally posted this as acomment on another thread