I realize most of you AIX pros know how to do this already, but I will post this up for anyone who might need it.
This function will strip out all the session connection information when issueing a batch command from a KSH script for TSM. it strips both the initial connection information, AND the disconnection (and return codes) out of whatever you are doing......the basic result is raw data.
function tsmchomp {
sed 1,12d | sed -e :a -e '$d;N;2,4ba' -e 'P;D'
}
This is for select statements , if you modify the first sed comment, you can use it for built-in TSM querys and commands as well.
now if someone wants to be really nice, they will print up the same function in PERL and I would be grateful =)
Brandon
This function will strip out all the session connection information when issueing a batch command from a KSH script for TSM. it strips both the initial connection information, AND the disconnection (and return codes) out of whatever you are doing......the basic result is raw data.
function tsmchomp {
sed 1,12d | sed -e :a -e '$d;N;2,4ba' -e 'P;D'
}
This is for select statements , if you modify the first sed comment, you can use it for built-in TSM querys and commands as well.
now if someone wants to be really nice, they will print up the same function in PERL and I would be grateful =)
Brandon