# System Variables

PGN | Current Program Pathname

String System Variable

## Contents

String, name of currently loaded program

## Description

The PGN variable contains the name of the currently loaded program, complete with its full operating system pathname.

#### Note:
One exception to the above: If you have the 'OP' (original program) system parameter set to On, PGN returns only the program name (i.e. without an expanded pathname).

## See Also

'OP' Return Original Program Name

## Example

print pgn
set_param 'OP'
print pgn
->run
C:\PVX\MANUAL\TST\TST_EGS TST_EGS