Cfn()

Construct the full filename from run number and defaults

CFN [number=Integer] [name=String] Construct a full path name for the given run or file number.

example:

	>> Set/Disk "IRIS$DISK0:"
	>> Set/Dir "[IRSMGR.DATA]"
	>> Set/Inst "IRS"
	>> Set/Ext ".RAW"
	>> printn Cfn(345)
	IRIS$DISK0:[IRSMGR.DATA]IRS00345.RAW
	>> printn Cfn("special.dat")
	IRIS$DISK0:[IRSMGR.DATA]SPECIAL.DAT

Note: Cfn() adds the appropriate number of 0s for ISIS raw file names.

Cfn

The Cfn() function provides the formatting necessary to convert between integer run numbers and full file names by making use of previously set defaults. The run number conversion is ISIS file name specific however using Cfn() with a file name is general (note that on Unix systems, there is no need to specify the Disk default).

Parameters:

Number (Integer)

Integer run number which is automatically converted to a zero padded string before concatenation into a file name.

Name (String)

A complete filename but without any path (ie Disk/Directory) specification.

RESULT = (String)

A fully constructed file name which be used to access the data.