We compress(while running the export, not compressing afterwards) our export dump file during the export run so it could stay below the 2G limit. Now even the compressed file exceeds 2G. I know in 8i you can use more than one dump file by specifying in file=exp.dmp1,exp.dmp2... But how do I do this while compressing at the same time?

The part of script we use now is:

mknod $HOME/$DAY$1 p
compress -f <$HOME/$DAY$1> $HOME/$DAY$1.Z&
(
exp parfile=$HOME/genexp$1.par file=$HOME/$DAY$1 log=$HOME/exp$1.log$XDAY
)

So basically

mknod file.dmp p
compress -f file.dmp.Z&
(
exp parfile=parfile file=file.dmp
log=logfile
)

So how do I add a second dmp file to this script so I can have a second compressed dmp file when the first one exceeds 2G?