File Names
A filename is any valid MPE file name and is used in Qedit commands to identify a workfile for editing (Open, New, Text) or an external file to be accessed in some way (Add, Keep, List, Text and Use). On MPE/iX 5.0, Qedit accepts file names up to 240 characters long, containing underbars (_) and dashes (-). On MPE, a POSIX file name must be preceded by a period (.) or a slash (/). The following commands all contain valid file names:
/open qedt3p1.source
{open file for editing work}
/add 50.1 = abcd.pub
{copy in lines from a file}
/new qedt3p2.source
{create a new Qedit workfile}
/keep ktemp.stream
{convert workfile to Keep file}
/text #o1234
{see Spool Files}
/text (custrec)
{see Copylib Members}
/keep /GREEN/BOB/temp.dot
{MPE/iX 5.0 or later}
/text /GREEN/BOB/temp-dash /list /GREEN/BOB/temp_underbar
/list ./temp-dash
{current working directory}
/list ../SRC/lowercs
{parent directory}
File names that include special characters might cause problems to Qedit. For example,
/Text ./file:name Error: Extra or invalid character in Text command
If you run into this, you can use the $file keyword instead. The $file keyword can be used wherever a file name is expected such as in the Text, Add, List commands. The syntax is:
$file[=]"filename"
$File is a reserved keyword, which is followed by an optional equal sign and the file name enclosed in string delimiters. Without doing anything to the string, Qedit tries to open the specified file. The previous example now becomes:
/Text $file="./file:name" 10 lines in file
This means the file name is assumed to be in the POSIX namespace. If you wish to access files in the MPE namespace, you have to enter the name in uppercase and use the POSIX notation.
/ACCOUNT/GROUP/FILENAME