VERIFIED SOLUTION i

Resolve error "LEM0036A Reference to invalid output file number 900" in DOC1 Generate

Issue

A PCE script is splitting a PS file into multiple output files, but PCE is failing with "LEM0036A Reference to invalid output file number 900".

Cause

PCE has a limit on the number of files that can be opened for input and output.

Resolution

UPDATED: November 9, 2017
You can open a maximum of 256 files for input, and a total of 256 files for output, 512 files in total, so this needs to be taken into consideration when programming your script.
Environment Details
Product Feature: DOC1PCE