You are here: Development Standards > Routines > Application-SpecificRoutines > RMCRTFIL.PUB

# RMCRTFIL.PUB

RMCRTFIL.PUB is a public program that will attempt to create a file with specifications found in an applications XXDATA.YYY file (where XX is the application ID and YYY is the version), given the index to read and the file name to create. Encrypted files will also be created from this function.

`0030 ENTER FILE[ALL],APP$,APPLDIR$,DESTFILE$,FILE$,VER$,MSG$`

Variable | Description
FILE[ALL] | Standard file array used for the data file channel number
APP$ | Application ID used to determine name of XXDATA.YYY file
APPLDIR$ | Not used
DESTFILE$ | Path and name of file to create
FILE$ | Key index to read from an XXDATA.YYY file
VER$ | Version of file used to determine the name of XXDATA.YY file
MSG$ | Error message if file could not be created

Exit Points | Explanation
EXIT | RMCRTFIL.PUB does not normally return any errors.
EXIT ERR | An error is returned when an error occurs.