Chapter Contents

Previous

Next
FILEMAC

FILEMAC



Saves the contents of the Program Editor window as a member of a CMS MACLIB

CMS specifics: all


Syntax
Details

Syntax

FILEMAC member maclib <REP | NOREP>

member
is the name of the MACLIB member. Data from the Program Editor window is written to 'member COPY A', which is then stored in the MACLIB member. If member is longer than 8 characters the name will be truncated.

maclib
is the filename of the MACLIB to be created or updated with the specified member. If 'maclib MACLIB *' doesn't exist, it will be created on the A disk.

NOREP
If a file 'member COPY A' already exists, it will not be replaced. If the MACLIB already contains member, it will not be replaced. The FILEMAC command will not write the contents of the Program Editor window. NOREP is the default.

REP
The contents of the Program Editor window will be written to the specified MACLIB member even if a member of that name already exists or if 'member COPY A' already exists.


Details

The FILEMAC command provides a means of saving the contents of the Program Editor window to a specified member of a CMS MACLIB.

The FILEMAC command is implemented as an autocall macro, so its use requires setting the SAS system options CMDMAC and MAUTOSOURCE.

CAUTION:
Ensure that lines in the Program Editor window do not exceed 80 characters in length. Because MACLIBs have a record length of 80, any longer records will be truncated.  [cautionend]


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.