I want to append to a file (JSXF) the first and last records of each file in a set of files (!fileset) using one command file.
This is how I get the first record (using one command file):
file lpb = JSXF,old;dev=disc;acc=append
print !fileset;start=1;end=1;keepamdates;out=*lpb;pagehead;num
And this is how I get the last record (using another command file):
file lpb = JSXF,old;dev=disc;acc=append
print !fileset;start=-1;keepamdates;out=*lpb;pagehead;num
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *