Chapter Contents

Previous

Next
SAS Companion for the OS/390 Environment

Directing Output to External Files with the FILE Command

You can use the FILE command to copy the contents of many different windows to external files. Issue the FILE command on the command line of the window whose contents you want to copy. For example, to copy the contents of the LOG window to a sequential data set, issue the following command on the command line of the LOG window:

file 'myid.log.out'

If the sequential file does not exist, a requestor window asks you whether you want to create the file and whether you want to catalog it. If the file does exist, a requestor window asks you whether you want to replace it or to append data to the existing data.

You can also use the FILE command to copy the contents of a window to either a PDS or PDSE member:

file 'myid.log.out1(test)'

If you have already associated a fileref or DDname with your PDS or PDSE, you can use the fileref or DDname in the command, followed by the member name in parentheses:

file mylib(test)

If the member that you specify already exists, it is overwritten because you cannot append data to existing PDS or PDSE members.


Chapter Contents

Previous

Next

Top of Page

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