File Transfer in Rumba Mainframes
File Transfer in Rumba Mainframes
File Transfer in Rumba Mainframes
Technical Bulletin
Summary
With the RUMBA for the Mainframe file transfer feature, you can copy files from a PC to an IBM mainframe or from an IBM mainframe to a PC. RUMBA software works transparently with standard mainframe operating systems. This allows an application on one platform to access and use data on another platform. RUMBA software simplifies the file transfer setup process by using typical Windows menus and dialog boxes. It also reads and lists PC and host files, and lets you transfer files in the background. You can perform file transfers using the configurable tool bar. This technical bulletin provides information about using RUMBA for the Mainframe File Transfer, including background information and troubleshooting tips.
Overview
RUMBA for the Mainframe provides a robust file transfer program between a PC and an IBM host. While on the surface an upload or download are usually simple tasks, file transfers can be complex. You have to consider not only differences between the IBM host and PC operating systems and file structures, but also variables like transfer type, character translation, and data transfer rates. To start a transfer, RUMBA software will submit a command to a host file transfer program. The most common host program used is called IND$FILE. Despite the fact that IBM has kept the specifics of this interface proprietary, RUMBA software provides abundant functionality, like support for ASCII or binary transfers, Write Structured Field or Buffered data streams, EBCDIC-to-ASCII translation, and data compression. RUMBA for the Mainframe also supports DOS-based, batch, and drag-and-drop file transfer features.
Getting Help
RUMBA software includes on-line documentation, context-sensitive help, a readme file, and the Help Manager utility. In addition, an Administrator Guide is available. There is also a wealth of information available from our support web site http://supportweb.entmanage.com.
3222.DOC
Page 2
Technical Bulletin
On-line documentation is accessible from the Help menu or can be searched by clicking the question mark icon . Context-sensitive help is accessible by clicking the icon that and clicking on the field on which you want looks like an arrow and a question mark help. You can also use the CTRL-H command to invoke context-sensitive Help. The Administrator Guide includes information that a system administrator may need to configure a LAN installation and optimize the customizable features built in to the software.
Transferring a File
NOTE: Before sending a file to or receiving a file from a host, the active session
3222.DOC
Page 3
Technical Bulletin
2. From the Transfer menu, click Configure. The File Transfer Setup dialog box appears.
3. Specify the host environment, and any other parameters you want to specify, then click OK. 4. To send a file to the host: From the Transfer menu, click Send. 5. To receive a file from the host: From the Transfer menu, click Receive. 6. Specify transfer options when the Copy from Host to PC or Copy from PC to Host dialog box appears (the dialog box that appears depends on whether you chose Send or Receive). 7. After selecting the specifications necessary for the file transfer, select OK. 8. During the transfer, another dialog box appears that shows you the status of the transfer. If you are downloading a file to your PC, the dialog box will be titled Receive. If you are uploading a file to the host, the dialog box will be titled Send. The dialog box shows the direction of the transfer, the file names on the PC and the host, the status, and the time remaining.
3222.DOC
Page 4
Technical Bulletin
3222.DOC
Page 5
Technical Bulletin
Figure 3. The File Transfer Information dialog box lets you create templates that specify options for drag and drop file transfer.
Using a file transfer template, you can define the parameters of a drag and drop file transfer. For instance, if you would like to be able to transfer all files that have a TXT extension up to the host files that have an extension of TEXT, you can configure that in the File Transfer Information dialog box. After configuring your template, click Accept then Close. Click OK in the File Transfer Setup dialog box, then select File/Save to save your settings in a Mainframe display session. For more information about using templates, see the on-line documentation or press CTRL-H for context-sensitive Help. To perform a drag and drop transfer, select a file in the Windows File Manager and drop it into your host session window. The file is then automatically sent to the host.
3222.DOC
Page 6
Technical Bulletin
Before you use drag and drop to send a file, be sure that the session with the host is connected and that all file transfer options are correctly configured. Drag and drop is not possible on downloads, but you can configure the transfer options in the Templates dialog box. These options will be saved when you perform the Transfer/Receive command.
3222.DOC
Page 7
Technical Bulletin
IND$FILE
When RUMBA software performs a file transfer, it sends commands to IND$FILE. The command for Receive:
IND$FILE GET HostFileName (options
The options depend on what is checked in the RUMBA File Transfer dialog box. The host then executes the program IND$FILE using the given parameters. IND$FILE then sends a data stream to RUMBA for the Mainframe containing the contents of the host file. The data stream will most likely be formatted into a File Transfer Write Structured Field. RUMBA software treats the IND$FILE data stream in the exact same manner as any other data stream. That is, RUMBA for the Mainframe: 1. Translates the information from EBCDIC to an internal table. 2. Translates the internal table to either ASCII or ANSI, depending on the version of RUMBA for the Mainframe and which option is chosen. 3. Writes the data that would normally be written to the screen to the file name specified in the dialog. IND$FILE will send the command in the data stream to indicate that the file transfer operation is complete and the host sends the next READY prompt. During this process, IND$FILE handles both reading the host file and writing to the host file. RUMBA software handles both reading the PC file and writing the PC file. RUMBA software handles the sending of the IND$FILE command with its parameters. If there is a problem, IND$FILE will produce what are known as TRANSXX messages (where XX equals a number). RUMBA software will pass on these errors in an on-screen Windows dialog box. See the section below, "File Transfer Does not Complete," for information about the most common IND$FILE errors.
3222.DOC
Page 8
Technical Bulletin
3222.DOC
Page 9
Technical Bulletin
User Library | |---- Library | | | |----- SDS | | | | | |---- Record | | | : (User data, such as text.) | | | : | | |---- Record | | | | | |----- PDS | | | | | |----- (Member) | | | | | | | | ----- Record | | | | : (User data, such as lines of code, database | | | | : records, or lines of a document.) | | | | ----- Record | | | | | |----- (Member) | | | | | | | | ----- Record | | | | : (User data, such as lines of code, database | | | | : records, or lines of a document.) | | | | ----- Record Additional information on mainframe datasets (and the JCL that supports them), can be found in the book System 370 Job Control Language by Gary DeWard Brown (Wiley, 1977).
3222.DOC
Page 10
Technical Bulletin
four bits to each nibble to make the resulting new byte an EBCDIC character that can be displayed. Using this mode for file transfers, you double the amount of data that is transferred between the PC and the host. In addition, an acknowledgment (ACK) is required after each screen-equivalent block is sent before another block is sent.
CmdLineArgs=1
With these two settings, you can specify the number of seconds RUMBA will wait before sending the time-out message to you. The settings for IND$FILE transfers and List Host Files may be set independently. For example: IND_Timeout=20 List_Timeout=50 By default, at the end of a CICS file transfer, RUMBA software sends an "Attention" message to the host. This automatic "Attention" may interfere with host applications such as TPX session manager. When the NoATTN=1 switch is set, it prevents the "Attention" from being sent at the end of a CICS file transfer. You can still use the ATTENTION key on the keyboard to manually send an attention. The default setting is NoATTN=0.
3222.DOC
Page 11
Technical Bulletin
NOPA1=1 NOPA1=2
The NOPA1 entry prevents RUMBA software from sending PA1 during a TSO file transfer. This allows you to use the verify host screen without RUMBA software using PA1 for screen synchronization. You may set this entry in either of two ways. To suppress PA1, set NOPA1=1 in the [FTX] section of your RUMBA.INI file. Note that this disables List Host files. To suppress PA1 without disabling List Host Files, set NOPA1=2. This entry causes RUMBA software to send an "Attention" message instead of a PA1 message, and does not disable List Host files. To restore normal PA1 control, remove the NOPA1 entry, or set the entry to NOPA1=0.
UnlockWithCD=1
The UnlockWithCD key is used to indicate whether to unlock the keyboard when a Change Direction Indicator (CDI) flag is received from the host. If your session is leaving the keyboard unlocked when it should be locked, this setting may help. Use a value of 0 to disable keyboard unlocking with the CDI flag. The default setting is 1.
For more information about RUMBA.INI settings with RUMBA software, see Technical Bulletin 3214, Understanding RUMBA.INI in RUMBA for the Mainframe.
General Troubleshooting
There are many variables to take into account when first performing a file transfer. Problems could be related to the host, network, or PC. Here are some general suggestions with questions you should ask to help identify where the problem exists. After reviewing these questions and you should have a much better idea about where the problem resides. 1. Identify the problem.
Does the file transfer just sit and do nothing? Does it show bytes being sent? Does it transfer small files but not larger files? Is there only one file having the problem or do multiple files have the problem? Do uploads fail while downloads work (or vice versa)? Are other users able to perform transfers? Are there IND$FILE TRANSXX errors?
3222.DOC
Page 12
Technical Bulletin
What kind of file is it? What is the host file name being entered into the RUMBA dialog box? What file transfer options are you choosing in RUMBA for the Mainframe? Have you tried WSF using various Block Sizes or Buffered Transfer Modes? Are you at a READY prompt on the host? Are you overwriting a host or PC file or creating a new one? File Transfer does not Complete Problematic File Transfers RUMBA File Transfer Features
3. Depending on the symptoms of the problem, see one of the following sections:
denominator to make the transfer work. For instance, if attempting to transfer a large file, try transferring a small file instead. If using WSF as the file transfer mode set with buffers of 32, attempt one with buffers set to incrementally lower amounts. If that still fails, then use the Buffered Transfer mode. If an upload fails, see if a download works. Once the problem can be isolated in this way, it will be easier to resolve.
Error Messages
File Transfer does not complete 0 bytes transferred . . .
Verify the file type. Is it a text or a binary file? Verify the direction of the transfer. Is this an upload or a download? Does the opposite transfer work okay? Can you transfer other files? Can other users transfer the file?
If the File Transfer Status dialog box appears to "hang", cancel it and return to the host screen. Check the screen for any host errors. If the transfer is a download, run checks on the local PC. For example, check to see that there is sufficient disk space for the file and look for a TEMP variable.
3222.DOC
Page 13
Technical Bulletin
Run a transfer using the demo host, as described in this document, and verify that it works. If the transfer is an upload, call your host system administrator to find out if there are problems on the host (lack of disk space, etc.). Timed out waiting for host screen If List Host Files and Verify Host Screen are selected under the Transfer/Configure menu option, then RUMBA software will attempt to list the host files when Transfer/Send or Transfer/Receive menu options are chosen. If for some reason RUMBA software is unable to do this, the above error message will echo on the screen. To get around this, choose Transfer/Configure, uncheck both options, and attempt the file transfer again. Also, since RUMBA software sends a command string to the host when performing a file transfer, it requires that you be at a screen where the command can be read. Often a user is not at the proper host screen and will get this error. Test by selecting Transfer/Configure in the RUMBA session and turn off Verify Host Screen and then see if the transfer will work.
NOTE: Under TSO, early versions of RUMBA software were unable to
perform a transfer when you were at a ISPF screen. Test the transfer when at a READY prompt and call NetManage Technical Support with the results. TRANS13 - Error writing file to host; file transfer canceled Sometimes you will see this message when attempting a WSF file transfer if the host does not support it. In that case, you can try using a WSF Block Size of 2K or choose Buffered as the Transfer Mode. In some cases, you need to change the NOPA1=1 setting in the RUMBA.INI file. See the RUMBA.INI settings section above. TRANS14 - Error reading file from host: file transfer canceled Verify that you can list the file on your host system. When RUMBA software cancels the transfer, you may see host commands or data on your mainframe screen. Write these down for later reference. Verify the prompt that is on the screen. RUMBA software may not provide an error message if the Verify Host Screen box is unchecked. If you are in TSO and are at an ISPF screen, test the transfer when at a READY prompt. Call NetManage Technical Support with the troubleshooting data.
3222.DOC
Page 14
Technical Bulletin
TRANS 17 - missing or incorrect TSO dataset - name file transfer canceled Verify the host file name by listing it on the host or opening it in a host file editor like ISPF. If you are using a fully qualified PDS, test it by putting single quotes around the file name. Try connecting with an untitled display session and check the syntax of the IND$FILE additional parms. You might also try setting UnlockWithCD=0 in the RUMBA.INI file. See the section of this document on RUMBA.INI settings. TRANS18 - incorrect option specified Verify the host file name by listing it on the host. If you are using a fully qualified PDS, test it by putting single quotes around the file name. Verify the syntax of any parameters you are adding in the Additional Parameters text box in the Transfer/Configure dialog box.
What kind of file is it (text or binary)? Is this an upload or a download? Does the opposite transfer work okay? Do other files work? What about other users?
If the transfer is a download, run checks on the local PC. For example, check to see that there is sufficient disk space for the file and look for a TEMP variable. If the transfer is an upload, call your host system administrator to find out if there are problems on the host (lack of disk space, etc.). Also see the section of this document titled, "RUMBA.INI Settings that Can Be Used with File Transfers" to solve possible problems. Sometimes IND$FILE will send an extra key at the end of a transfer which will prevent the transfer from completing.
3222.DOC
Page 15
Technical Bulletin
Slow File Transfers There are several variables to consider when troubleshooting slow file transfers. It helps to have a baseline to determine what slow really means. Some variables to consider when troubleshooting include: connection type, network traffic, WSF or structured files transfer, size of file, and PC processor speed. To get the fastest results, choose WSF file transfer with a block size of 32. Partial File Transfers
What is the size of the file? Is the file text or binary? Is it a particular file that fails; do other files work? Is it a PC related problem? Maybe the PC is running out of disk space. Call NetManage Technical Support with troubleshooting information.
Also see the section of this document titled, "RUMBA.INI Settings that Can Be Used with File Transfers" to solve possible problems. Sometimes the 3270 data stream will differ from what RUMBA for the Mainframe expects. One of the INI settings may remedy the problem. Corrupted File Transfers
What is the size of the file? Is it text or binary? Do other files work? Call NetManage Technical Support with troubleshooting information. If it is a text file are you choosing To ASCII (for a download) or To EBCIDC (for an upload)? If it is a binary file, are you unchecking CR/LF (Carriage Return/Line Feed)?
2004 NetManage, Inc., its subsidiaries, and its affiliates. NetManage, OnWeb, RUMBA, OneStep and the Chameleon logos are registered trademarks, registered service marks, trademarks or service marks of NetManage, Inc., its subsidiaries and its affiliates in the United States and/or other countries. IBM, AS/400, DOS, SNA, and PC are registered trademarks of International Business Machines Corporation. Novell and NetWare are registered trademarks of Novell, Inc. Microsoft, Windows and Windows NT are registered trademarks of Microsoft Corporation in the United States and/or other countries. Certain other marks are the property of their respective owners.
3222.DOC
Page 16
Technical Bulletin
The information in this technical bulletin is subject to change without notice. NetManage, Inc. provides this information as is without warranty of any kind, either expressed or implied, but not limited to the implied warranty of merchantability and fitness for a particular purpose. NetManage, Inc. may improve or change the product at any time without further notice. This document does not represent a commitment on the part of NetManage, Inc. The software described in this document is furnished under a license agreement or nondisclosure agreement. The software may be used only in accordance with the terms of the licensing agreement.
3222.DOC
Page 17