You are here: Development Standards > Routines > General Routines > GENSCOPY.PUB

# GENSCOPY.PUB

GENSCOPY.PUB is a public program for copying a source file to a destination file. Each parameter must include the path location and name of the file.

GENSCOPY.PUB is similiar to GENCOPY.PUB, with the exception that setting unix permissions are controled via a parameter passed into GENSCOPY.PUB, while GENCOPY.PUG will automatically set permissions based on if the source system is a unix-based operating system.

`0100 ENTER SOURCE$,TMPDEST$,EXEC`

Variable | Description
SOURCE$ | Location and name of source file
TMPDEST$ | Location and name of destination file
EXEC | Set to 1 if unix permissions need to be set, 0 to skip any unix permission settings

Exit Points | Explanation
EXIT | GENSCOPY.PUB does not return any errors.