FileSpec - specify the file for a HostSave or HostPrintScreen command

Return to Introduction  Previous page  Next page

FileSpec({log | printer | clipboard}, "filename"[,append])

Where:

logindicates a log file specification for the HostSave or HostEnableLogging system commands.        
printerindicates a printer file specification for the HostPrintScreen system command.        
clipboardindicates a file specification for the EditSaveClipboard system command.        
filenameis the full filename, including drive letter and path name for the output file.        
appendappend output to an existing file.        

 

filename may be a variable.

The FileSpec command defines the disk output files for TN3270 Plus system commands.

 

The "FileSpec log" command directs the terminal session activity to the specified output file when logging is enabled (HostEnableLogging). The HostSave system command output is also directed to the specified file. The HostSave system command can be issued with the script command "key(HostSave)".

 

The "FileSpec printer" command directs the PrintScreen system command output to a disk file. The HostPrintScreen system command can be issued with the script command "key(HostPrintScreen)". To reset output to the printer, use the following:

FileSpec(printer,"")

 

The "FileSpec clipboard" command directs the EditSaveClipboard system command output to the specified file The EditSaveClipboard command can be issued with the script command "key(EditSaveClipboard)."

Examples

FileSpec(log,"c:\test.log",append)

FileSpec(log,$FILENAME)

FileSpec(printer,"c:\printer.txt")

FileSpec(clipboard,"d:\clipboard.txt",append)

 

Sample Script        

' This script defines c:\test.log" as the current log file

' and then saves the current screen to the log file.

'

FileSpec(log,"c:\test.log")

key(HostSave)

exit

 

See Also:

 

Script Command Summary

Script Variables

Using the Scripting Language


TN3270 Plus is continually being improved. To learn more about the latest enhancements, please review our Version History web page.