When running a script that contains a USS command with a pipe to the "sort" the following error can occur:
The script contains a command like below:
tail -10000 /path/filename ...... | sort -u
The sort command was allocating more storage than the amount that was available.
Using the -y directive to limit the amount of memory used by the sort command solved this problem. From IBM documentation:
tail -10000 /path/filename ...... | sort -u -y
According to the reference above, using -y without a number makes sort choose a reasonable maximum amount of memory.