Use FileProcess to perform an action against the file based upon the file type. This action might, typically, involve a compilation or a submission.
Depending upon the file's type, one of the following commands is invoked.
FileProcess may also be entered as FileProc[ess], ProcessFile, ProcFile, or Proc[ess].
FileProcess is supported for BIM and workstation files. It is not supported for PDS and VSE files.
Optional Operands
FILE is the BIM or workstation file to be processed.
Default: last referenced file.
FileProcess can also be invoked by entering the ContextProcess command while a FileLibrary or FileScan session is current. FileProcess is often customized to support site-specific file types. Check with your System Administrator. The following list shows the command that is invoked for a particular file type:
ALC FileCompile
ASM FileCompile
BMS FileCompile
CBL FileCompile
CMD FileExecute
COB FileCompile
COBOL FileCompile
FORT FileCompile
JCL FileSubmit
PLI FileCompile
PRC FileExecute
PROC FileExecute
RPG FileCompile
FileProcess sets the last referenced file. Since FileProcess will make use of the last referenced file, the following string is a good candidate for a key assignment.
=> file;process
When Valid
For Host files, the user must have LIST access level for the FILE directory.
Return Codes
OK Successful.
ED File is being edited.
NF File not found.
SC Inadequate access level.
Procedure Notes
FileProcess sets the TXM variables to the attributes of FILE.
Examples
Process the workstation file StgSgAq.C:
=> proc stgsgaq.c
Process the BIM file OMJBKPG:
=> proc omjbkpg