i vould like to get the last word of a record with dfsort.
I can't do it with the column number because it changes.
I have this jcl but it works only when the last agument is in column 32 :
//*********************************************************************
//ICE01 EXEC PGM=ICETOOL
//INDD DD DISP=SHR,DSN=FIC.DATASET
//TOOLIN DD *
COUNT FROM(INDD) EMPTY USING(HDTL) RC4
/*
//HDTLCNTL DD *
OMIT COND=(32,8,CH,EQ,C'LASTWORD')
/*
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
The last word could be in other column than 32 because of the size of the word just before that could have different lenght
I could use rexx to do that, but i prefer using dfsort.
Thank's for your help.