Work fields and temporary files across processes
When a child sees a blank field or an unexpected set of records, check the share class on the work field or temporary file and the invocation type on the child.
On this page
What a child shares
- SUBPROCESS. All three share classes remain available. The child also shares the current record buffers and file positions.
- RELATED. RELATED and DETACHED work fields and temporary files remain available.
- DETACHED. Only DETACHED work fields and temporary files remain available. Check the exceptions below for a QUERY or a job step running as a separate task.
Every work field and temporary file (disk or memory) has a share class. The default invocation type depends on how the child is called.
-
Menu children are typically (and by default) defined as DETACHED invocations.
- Job-step children are typically (and by default) defined as RELATED invocations.
- Parent-Child invocations between two (for example INPUT) processes are typically (and by default) defined as SUBPROCESS invocations.
- Direct ILF verb invocations (ex: ILF verb 'INPUT') are by default defined as DETACHED invocations.