TOC -Previous - Next

Step 7: Working with the Host

Once you have connected to a host, PowerTerm enables you to perform the following functions:

Transferring Files

PowerTerm enables you to transfer files between the PC and the host. PowerTerm operates with both ASCII and non-ASCII files.

Before transferring files, you need to define the PC and host data types. PC and host data types are defined in the File Transfer Setup dialog box, see below.

File transfer for 3270 emulations is described. File transfer for 5250 emulations is not supported.

From the Communication menu, select File Transfer Setup. The File Transfer Setup dialog box is displayed:

Select data types for the host and PC data types from each one. s respective dropdown lists.

Click OK.

Connect to a host. For more information, see Step 6: Connecting to a Host.

In the work area, type the command that the host uses to receive a file and press <Enter>.

Click any tab, except the ASCII tab.

Specify a directory, if required.

If you want the PC receiving file to have a different name from the file on the host, type in a file name in the File Name field. Leave as *.* (or empty) if you want to receive the data into a file that carries the same name as the name used by the host.

If Kermit is functioning in Server mode, then select the Use Get check box and specify both file names in the File Name and Host File Name text boxes.

Connect to a host. For more information, see Step 6: Connecting to a Host.

In the work area, type in the command that displays the file (For example: for UNIX, cat filename; for VAX, type filename). Do not press Enter.

From the Communication menu, select Receive File.

The Receive File dialog box is displayed:

Click the ASCII tab.

In the File Name field, enter the name of the PC file that will store the data, and click OK.

Press Enter to activate the command.

 

Connect to a host. For more information, see Step 6: Connecting to a Host.

In the work area, type the host. s file reception command and press Enter.

 

From the Communication menu, select Send File.

The Send File dialog box is displayed:

Click a tab other than ASCII.

Specify the file to be sent.

Click OK.

Activate the command that will accept the data on the host (examples: for UNIX, -cat > filename, or enter an editor and move to the data entry state within the editor).

From the Communication menu, select Send File. The Send File dialog box is displayed:

Click the ASCII tab.

Enter the PC file name.

Click OK.

Transferring Files for 3270 Emulations

PowerTerm provides IND$FILE transfer for 3270 emulation. Basic information that is required before attempting a file transfer:

PC File Name: The name of the file that resides on the PC.

Host File Name: The name of the file that resides on the mainframe.

The following parameters should be modified, if necessary:

File Conversion

ASCII: Specifies converting the file to ASCII format.

CR/LF: Specifies deleting a carriage return character and a linefeed character from the end of each line of the file you are sending, or adding them to the end of each line of the file you are receiving from the host. For ASCII files (but not for binary files) CR/LF processing is typically appropriate.

Local Conversion: Specifies converting the file according to the format specifications that appear in the above Host and PC boxes.

File Creation

Append: Specifies appending the transferred file onto the existing file of same name.

Overwrite: Specifies that the transferred file overwrite the existing file of same name.

Record Format

Default: Specifies the Default Record Format for the file residing on the mainframe.

Fixed: Specifies the Fixed Record Format for the file residing on the mainframe.

Variable: Specifies Variable Record Format for the file residing on the mainframe.

Undefined: Specifies Undefined Record Format for the file residing on the mainframe.

Allocation Units

The primary and secondary Space (see below) allocations are measured in either track, cylinder or average block units. Each type is represented by one of the following fields:

Tracks: Specifies Tracks as the allocation unit of disk space.

Cylinders: Specifies Cylinders as the allocation of disk space.

AvBlocks: Specifies the size (in blocks) for an average block.

Relevant only where you are using blocks as your allocation unit.

LRECL (Logical Record Length): Specifies the record size (in bytes) for the file being created on the host. For ASCII files, set this value to accommodate the longest line in your file.

Range of values: 0 and 32768.

The default: lines of up to 80 characters.

Block Size: Specifies the block size (in bytes) for the file being created on the host. For files with fixed-length records, this value must be a multiple of the LRECL (Logical Record Length).

Space: Specifies the size (in allocation units) of the primary (left box) and secondary (right box) allocation for the host file being created. In the event that the primary allocation is insufficient, then a secondary allocation is used.

Additional Options: Specifies any parameters specific to the IND$FILE program on your host system. The contents of this text box are attached to the end of the transfer command.

Host Program: Specifies the name of the host program to be utilized by PowerTerm Pro to initiate a file transfer.

The default and only valid choice: IND$FILE.

From the Communication menu, select Receive File. The IND$FILE: Receive File window is displayed:

Select the appropriate tab (CMS, TSO or CICS) which reflects your mainframe working environment.

Specify the PC File Name and Host File Name.

Modify the other parameters as required.

Click OK to start receiving the file. A File Transfer Status window with file transfer details is displayed.

From the Communication menu, select Send File. The IND$FILE: Send File window is displayed:

Select the appropriate tab (CMS, TSO or CICS) which reflects your mainframe working environment.

Specify the PC File Name and Host File Name.

Modify the other parameters as required.

Click OK to start sending the file. A File Transfer Status window with file transfer details is displayed.

 

 

Printing

PowerTerm enables you to define print parameters and print the terminal screen or data transferred from the host application.

From the File menu, select Print Setup. The Print Setup dialog box is displayed:

This dialog box contains a set of printing parameters. The displayed parameters change according to the printer you select. For details, consult your printer documentation.

The Default printer parameter enables you to send the output to the default printer selected under Windows. The Specific Printer parameter allows you to select one of the currently installed printers. For details about installing a new printer, consult your Windows documentation.

From the File menu, select Form Feed.

From the File menu, select Line Feed.

From the File menu, select Start Auto Print. The Start Auto Print command starts accumulating incoming data (while it is displayed on the screen). After you select this command, the menu option changes to Stop Printing.

On the File menu, click Stop Printing. The Stop Printing command prints all the data accumulated in the printing buffer of the slave printer, or in the autoprint buffer. If data was buffered with a printing request and communication failed before the data was sent to the slave printer, select this command to print the accumulated information.

Open a session.

From the Terminal menu, select Setup. The Terminal Setup window is displayed.

From the Emulation tab, select 5250 Printer.

Select the Printer tab, and from the Print Device dropdown list select File.

In the File Name field enter Lpt1 and click OK.

From the Communication menu, select Connect. The Connect dialog box is displayed.

In the Host Name field, enter the name of the AS/400 host. In the Device Name field, enter the name of the device for the printer session.

Click Connect. The Printer Session window is displayed. Leave it open. The AS/400 automatically creates a queue with the specified device name.

Open another session this one a 5250 display session and send your print jobs to the queue created by the AS/400.

Print the Terminal Screen

From the File menu, select Print Screen to print selected text, or the entire contents of the work area.

Starting a New PowerTerm Session

PowerTerm enables you to run two or more sessions concurrently by opening a new instance of the PowerTerm window.

Each session is identified by a letter (A to Z) which appears in the session window title bar. A session is assigned the first available letter. The first session is (A), the second (B) and so on. For example, if A, B and D are opened, the next session is assigned C.

From the File menu, select New Terminal window.

A new instance of the PowerTerm window is displayed.

You can switch to a specific session by pressing <Shift> + <Ctrl> + <X>, where X is the session letter. For example, if you want to work in session C, you would press <Shift> + <Ctrl> + <C>.

You can switch between sessions by pressing <Ctrl> + <Spacebar>.

 

TOC -Previous - Next