Emulator Referencev58
Emulator Referencev58
8
SC31-8960-00
Personal Communications for Windows, Version 5.8
SC31-8960-00
Note
Before using this information and the product it supports, read the information in “Notices,” on page 217.
Contents v
vi Emulator User’s Reference
Figures
1. VM/CMS SEND Command Syntax . . . . 69 8. CICS RECEIVE Command Syntax . . . . . 88
2. VM/CMS RECEIVE Command Syntax . . . 72 9. Data Transfer Example . . . . . . . . 101
3. MVS/TSO SEND Command Syntax . . . . 75 10. Grid Line Types . . . . . . . . . . . 181
4. MVS/TSO RECEIVE Command Syntax 80 11. Grid-Line Display Limits. . . . . . . . 182
5. CICS SEND Personal Communications GUI 12. Grid-Line Information Buffer and Displayed
Syntax . . . . . . . . . . . . . . 84 Character Data . . . . . . . . . . . 183
6. CICS SEND Command Line Syntax . . . . 84 13. Grid-Line Control Data Format . . . . . 184
7. CICS RECEIVE Personal Communications GUI 14. Grid-Line Definition Data and Displayed Grid
Syntax . . . . . . . . . . . . . . 87 Lines . . . . . . . . . . . . . . 186
All directives, operands, and other syntax can be typed in either uppercase or
lowercase, unless otherwise indicated.
InfoCenter
You can find documentation and links to other resources at the Personal
Communications InfoCenter, at the following address:
http://publib.boulder.ibm.com/infocenter/pcomhelp
The InfoCenter contains reference material that is not found in this book, such as
keyboard layouts and host code page tables. The Japanese InfoCenter also contains
FAQs and troubleshooting tips.
Online Help
The help facility describes how to install, configure, and use Personal
Communications. Online help is very extensive and includes information about
every aspect of configuring and using Personal Communications. You can use
Personal Communications online help just as you use the online help for Windows.
In addition to the PDF documents, there are HTML documents provided with
Personal Communications:
Quick Beginnings
The HTML form of Quick Beginnings contains the same information as the
Related Publications
For information about local area networks (LANs), refer to the following
publications:
v IBM Local Area Network Technical Reference
v AS/400 Communications: Local Area Network (LAN) Guide Version 2
Contacting IBM
This section lists ways you can reach IBM in case you encounter a problem or
concern with Personal Communications. Depending on the nature of your problem
or concern, we ask that you be prepared to provide the following information to
allow us to serve you better.
v The environment in which the problem occurs:
– Personal Communications configuration
- Personal Communications version and manufacturing refresh level
- The name of the workstation profile
- The name of the SNA Node Configuration file
– Workstation configuration
- The machine type and model, the system memory, the video adapter
- The communication adapter you are using
- Other adapters (especially communication adapters) installed
- The printer type and model
- Other devices installed, such as sound cards, modems, or fax machines
– Software configuration
- Windows version and level
- Communication and device-driver version and level
- Other communication programs (such as Microsoft® SNA Server or
Microsoft Data Link Control) that are running and using resources
- Printer driver version and level
– Host configuration
- The upstream host connection and configuration
v Problem analysis information
– Symptoms
– Type of problem
– OIA messages or error messages (if any)
– Key factors related to the problem
Support Options
If you determine that you need to contact IBM, you can do any of the following:
v Access the Personal Communications Web page at the following URL:
http://www.ibm.com/software/network/pcomm
v To find the phone number for IBM Software Support, U.S. customers can call
1-800-IBM-4YOU. International customers that have access to the U.S. ″800″ toll
free numbers can reach the International Support Center by calling
1-800-IBM-4YOU and asking to speak with the International Support Center
(ISC) in Atlanta. International customers without access to the U.S. toll free
numbers can call the ISC directly at 770-863-1234. The ISC’s FAX number is
770-863-3030 and is available 24 hours a day.
The following sections describe these utilities and how to use them.
Log Viewer
The Personal Communications log viewer utility enables you to view, merge, sort,
search, and filter information contained in message and trace logs. Use the log
viewer during problem analysis to work with message and trace log entries. The
default name of the message log output file is PCSMSG.MLG; its file extension
must be .MLG. The file extension for trace logs must be .TLG.
For more information about log viewer functions, refer to Administrator’s Guide and
Reference.
Trace Facility
The Personal Communications trace facility enables you to log trace information
for certain Personal Communications functions.
Note: If you have changed the default path for the formatted trace file, the
Information Bundler will not find the trace information. Copy the trace
files to the system-class application data directory.
10. Click OK.
11. Click Clear to clear the trace buffer where you saved a trace.
12. Use the log viewer to view the formatted trace log.
Information Bundler
The Personal Communications Information Bundler utility gathers system files,
trace and log files, and registry information into a self-extracting .EXE file. This
.EXE file can be sent to support personnel using FTP for problem resolution. This
utility should be executed immediately after the trace is complete to ensure that
the correct information is gathered.
Internet Service
The Internet Service utility enables you to send the .EXE file containing diagnostic
data collected by the Information Bundler to an FTP server. This utility will not
work unless TCP/IP is configured and you have a direct connection to the internet.
To use Internet Service:
1. Double-click the Internet Service icon located in the Personal Communications
program group; or, from an active session, click Actions → Launch → Internet
Service.
The Internet Service window contains four data fields that must have valid
values before you can submit your problem report.
2. Verify that the FTP Address field contains the default address
testcase.software.ibm.com. This is the service anonymous FTP server.
3. Type your e–mail address in the field provided.
4. In the Problem Determination Filename field, type the file name and path of
the .EXE file created with the Information Bundler. This file is located in the
Personal Communications installation directory.
5. In the PMR Number field, type the PMR number that you received as a result
of contacting IBM support personnel.
6. When all fields in the window have been filled with valid values, click
Transmit to submit your problem determination information.
Power Management
Personal Communications complies with Windows 2000 Power Management
requirements for handling sleep events. This support minimizes session
interruptions due to network disconnections caused by sleep on Windows 2000
and subsequent versions.
Note: In this context, the term sleep means that the system is on standby or is in
hibernation. To applications such as Personal Communications, standby and
hibernation are the same.
Sleep Permission
Before entering a sleep state (stand by or hibernate), Windows 2000 normally
requests permission from the applications that are running. When one or more
emulator sessions are connected and Windows signals that the user is available for
interaction, Personal Communications prompts the user to grant or deny sleep
permission. If the user grants permission, Personal Communications logs the event
and then notifies Windows. When user interaction is not possible, sleep permission
is denied.
You can specify a setting in the User Preference Manager that allows the system to
standby or hibernate without prompting. In default mode (unchecked), if there is
at least one connected session, you will be prompted to allow the system to
standby or hibernate. If there are no connected sessions, Personal Communications
Critical Sleep
When Windows 2000 resumes after an emergency suspension, Personal
Communications might display and log a warning message.
Changing Fonts
If you are using an In-Place embedded session, then changing the font face name,
switching between automatic sizing and fixed size, or changing the size for a fixed
size font can result in an incorrect display on the screen. To correct the display,
adjust the size of the session object window slightly.
WordPad
Personal Communications session objects created in Microsoft WordPad documents
by the drag-and-drop method cannot be used after the document has been saved
and closed. You should only create Personal Communications objects in WordPad
by using the Insert → Object menu option.
Some versions of Microsoft Word and Microsoft WordPad incorrectly save the state
of embedded objects that are displayed as icons. If you open a document that
contains a Personal Communications session object that was created to display as
an icon, and the object is activated, then it might activate in-place, instead of as a
separate window.
WordPro
If you attempt to open a link to a Personal Communications session in a Lotus®
WordPro document, WordPro might give unpredictable results. You should only
use embedded Personal Communications objects in WordPro documents. You can
use the Display as Icon option if a separate window is desired.
The value xxx, in the range 1 to 999, is the number of minutes a link remains
connected when there is no activity over it. The default value, InactiveTimeout=0,
disables Inactivity Timeout.
Note: The Inactivity Timeout function monitors only attention keys (that is, the
Enter, Clear, and PFx keys). It is recommended that you set a comparably
longer value for xxx if, for example, you expect to key in large amounts of
data on the screen before pressing the Enter key.
Environment Considerations
The following are environmental considerations for Personal Communications.
Virtual Memory
If you receive a message stating that the system is low on virtual memory, increase
the size of the virtual memory paging file. If you receive this message while trying
to open new host sessions or starting a Personal Communications function such as
File Transfer, increase the amount of virtual memory.
For an explanation of how to customize a PDT for PC/3270, see “PDT Files (3270
and 5250)” on page 23. For an explanation of how to customize a PDT for PC400,
refer to Administrator’s Guide and Reference.
For information about print processing for PC400, see “Print Processing” on page
95. For information about print processing for PC/3270, see “Print Processing” on
page 50.
You can map a key sequence to bring up the Printer Setup dialog. There is no
default key combination for this function. See “Default Key Function Assignments”
on page 29 for more information about keyboard functions.
Note: The Default selection causes the current Windows default printer to be
used.
3. Confirm that Use PDT is not selected.
Note: To switch from the current settings back to the defaults, select Default.
3. When all the items have been set, click OK or Apply.
The fonts in brackets [ ] are device fonts specific to the printer driver. The other fonts
are graphics display interface (GDI) fonts printed in bit map formats.
Notes:
1. When you set this to a value other than the default, Personal Communications uses it to scale the LPI and font
to the best fit for the page.
2. When you set this to a value other than the default, Personal Communications uses it to scale the CPI and font
to the best fit for the page.
You can set the following additional parameters by selecting the Text Options tab.
Table 2. Page Setup Parameters — Text Options Tab
Group Options Setting
Print Options Suppress Null Lines Determines whether to delete lines
containing only null or non-printable
These options are not available for the characters (null or non-printable field
printer session. characters, and field attributes) or to
print them as null lines.
Selected
Null lines are not printed.
Not selected
Null lines are printed.
Chapter 4. Printing 19
Table 2. Page Setup Parameters — Text Options Tab (continued)
Group Options Setting
Suppress auto new line when: CR at maximum print Determines whether to perform
position +1 automatic new line when CR is the
maximum number of columns to be
printed away from the first column.
Selected
Automatic new line is not
done. The characters after the
CR code are printed on the
same line.
Not selected
Automatic new line is done.
Determines whether to
perform automatic new
line/carriage return before
new line/carriage return (NL)
is done when NL is the
maximum number of columns
to be printed away from the
first column.
Note: This option is not available for
5250 sessions.
NL at maximum print
Selected
position +1
Automatic new line is not
done.
Not selected
After automatic new line is
done, new line is done again.
When you use a PC400 printer session, you can set the following additional
parameters by clicking the Form Settings tab. This option is available only when
the printer and its driver support the change-source function.
Chapter 4. Printing 21
Table 5. Page Setup Parameters — Form Settings Tab (PC400 Printer Session Only)
Parameter Description
Form Settings Specifies the form that should be selected when an application program specifies one
of the following paper sources:
v Drawer-one form
v Drawer-two form
v Envelope-hopper form
Before using this function, you must configure the paper trays and forms in the
printer-driver setup.
Table 6. Page Setup Parameters — Advanced Options Tab (PC400 Printer Session Only)
Option Item to be set
Printer Font Code Page Represents the code page being used for printing and displaying on the workstation.
No CR between fields Represents not sending a CR when printing other fields on the same line.
Print bold as normal Represents printing bold characters as not bold.
Display print status dialog Represents showing a dialog window that will display showing printer status.
Use raster fonts Represents allowing bitmap fonts for display and printing.
From a 3270 display session, you can also use the ZipPrint utility to print PROFS®
or OfficeVision (OV) notes, calendars, documents, CMS files, XEDIT workspaces,
and host-session screens. See the online help for more information.
Using the File → Print Screen Collection → Collect Screen feature, you can add a
capture of all or part of the screen to a collection of captures. You can then print all
the collected captures at the same time, using the File → Print Screen Collection →
Print Collection feature. After printing, the collected captures are deleted.
All the collected screens can be deleted without printing by clicking File → Print
Screen Collection → Purge Collection. An individual screen or part of the
collection cannot be deleted.
The File → Print Screen Collection → Print Collection on Exit option ensures that
the collected screens are printed before you close or disconnect the session. This
option is enabled by default. To end the session without printing the collected
screen, clear the Print Collection on Exit option. All the collected screens are then
deleted when you close or disconnect the session.
Note: The Collect Screen feature works independently of the normal Print Screen
function. You can still use Print Screen to print individual screens, while
collecting multiple screens.
You can add the Collect Screen and Print Collection functions to the toolbar, a
popup keypad, a custom keyboard map, or a mouse customization, using the Edit
In PDT mode, there is an option available for printing more than one screen in a
page. Refer to Administrator’s Guide and Reference for more information.
Note: When you use a host application which prints to your workstation’s LPT1,
you must first select the printer in the Printer Setup dialog of the File
menu.
Many printers support two or more of these languages. Most print drivers use a
PJL (Printer Job Language) to switch between languages and to perform other job
control functions, such as setting the number of copies.
You do not need a PDF for each different printer model; with the increasing
number of models, PDFs are named for the printer language, not the printer
model.
Older SBCS PDFs and PDTs are not shipped with Personal Communications, but
are available at the product Web site. If you already have modified PDFs, any PDF
and PDTs other than those in Table 7 on page 24 are retained during an install.
Note: All DBCS PDFs and PDTs are shipped with Personal Communications.
Chapter 4. Printing 23
The End_Job statement in a PDF contains the printer commands that are sent to
the printer at the end of each print job. If the End_Job contains a character defined
as form feed (FFF in the PDT), a form feed (FF) is sent to the printer. It is not
needed if the host application ends the job with the FF, as is commonly done.
Some print drivers add the FF if needed, and most print drivers ignore extra FFs.
So the FFF usually is protection against the host application not using a FF, and
usually causes no problem. However, if you get an extra blank page, remove the
FFF.
Table 7. Old Printer Definition Files
Printer Definition File (PDF) Name Remarks
ibm5577 (No FFF) (DBCS only)
ibm5577a (No FFF)
ibm5577b (No FFF)
lbp4
lips3a4 (No FFF) (DBCS only)
lips3b4 (No FFF) (DBCS only)
The supplied basic_ascii PDF does not contain any printer commands, which
results in only ASCII text being sent to a printer or file. An accompanying PDT is
also shipped. This PDF is for SBCS only.
PFT Migration
You can migrate a PC Support/400 Workstation Feature Printer Function Table
(PFT) to a PDF for PC400. Refer to Administrator’s Guide and Reference for more
information.
Chapter 4. Printing 25
Table 8. Printer Models and Supported PDTs (continued)
File Name Printer Name/Model
KS_WAN.PDT KS printer with completion code
KSSM_JO.PDT KSSM printer with combination code
KSSM_WAN.PDT KSSM printer with completion code
NPPAGES.PDT IBM NP12, NP17, NP24 printers for Japan
Table 9 lists the PDTs that are supported for DBCS only.
Table 9. DBCS Supported PDTs
File Name Printer Name/Model
NPPAGES.PDT IBM NP12, NP17, and NP24 in PAGES mode (Japan only)
IBM5585.PDT All types of IBM 5585 printers
IBM5587.PDT All types of IBM 5587 printers
IBM5577.PDT All types of IBM 5577 printers
IBM5577B.PDT IBM 5577-S02/T02 for Postal Bar Code Support (Japan only)
Printing to Disk
If you are using a PDT, you can save a host print-job or the contents of the session
window (Print Screen) to a workstation file instead of printing it.
To set up Print-to-Disk:
1. Click File → Printer Setup from the menu bar in the session window.
The Printer Setup window lists the supported printers.
2. Select Print to Disk Append or Print to Disk Separate from the list box.
3. Click Select PDT.
The Select PDT file window opens.
4. Select a PDT file from the list; then click OK.
The Printer Setup window reopens.
5. Click Setup.
The Select Print-to-Disk File window opens.
26 Emulator User’s Reference
6. Specify a file name, drive, and path; then click OK.
Note: If you specify the name of an existing file, subsequent print jobs are
appended to the data in the original file in the case of Print to Disk
Append.
You can use the PrinterFontCodePage parameter if the following conditions are
met:
v You can specify the printer font code page with which the desired font is
encoded.
v Personal Communications provides the translation table for the host code page
and the printer font code page.
To edit the .ws file, you must change the PrinterFontCodePage parameter to the
value of the supported code page you wish to use. This option must be put in the
[printers] section, and is case-sensitive. See the following example for the proper
parameter syntax. The parameter does not need to be placed immediately after the
[printers] section label.
[printers]
PrinterFontCodePage=852
In this case, the desired font is encoded with code page 852. Personal
Communications uses a different, existing translation table to translate data from
EBCDIC to 852, versus using the standard Windows code page.
This option is on the Page Setup panel for Personal Communications Version 5.8
5250 print sessions.
Chapter 4. Printing 27
28 Emulator User’s Reference
Chapter 5. Key Functions and Keyboard Setup
This chapter contains information about keyboard setup and customizing mapped
key functions.
For more information about each function, refer to the Keyboard choice on the
Help menu.
You can change the default key assignments to the following default function
tables, by selecting Keyboard Setup from the Assist menu.
When the Keyboard Setup window opens, select one of the following choices:
v 3270 for a 3270 keyboard layout
v 5250 for a 5250 keyboard layout
v 3270+5250 for a combined keyboard layout
v VT for a DEC VT220 keyboard layout
Personal Communications includes two .KMP keyboard map files that map the
standard Win32 hotkeys for Cut, Copy, and Paste. You can use these keyboard map
files or add the key values to an existing map file. See “Win32 Cut, Copy, and
Paste Hotkeys” on page 37 for more information.
When you use the 3270+5250 keyboard layout, the key definitions for the 3270 and
5250 layouts are combined with those listed here.
Table 12. Default Key Functions for the Combined Package
Function of Key Key
Change Screen Not assigned
Character Advance Shift+BackSpace
Help Not assigned
Host Print Not assigned
PA3 Not assigned
Roll Down PageUp
Roll Up PageDown
Printer Setup Not assigned
Note: For 3270, the Enter function is assigned to the Ctrl key, by default. To
change this assignment or, if you are using a non-IBM compatible keyboard
and the Enter key does not work properly, you need to customize your
keyboard. For 3270 and 5250 sessions, you can use the keyboard map files
provided with Personal Communications (see “Win32 Cut, Copy, and Paste
Hotkeys” on page 37).
Keyboard File
When you specify a key, you can save the new keyboard layout in a file (.KMP). If
you create two or more keyboard files, you can alternate between them as
required.
You can reset either the entire keyboard or specific keys to defaults:
v To reset the entire keyboard, set the current keyboard to IBM Default in the
Keyboard Setup window.
v To reset specific keys, select a key in the Customize Keyboard window and then
select Default from the Current Actions for Selected Key box.
Note: You cannot redefine the following keys: Alt, AltGr, Print Screen, Scroll Lock,
CapsLock, NumLock, and Shift.
For 5250 sessions, the .KMP file provided is pcswinkb5.kmp. The remapping is
given in Table 14.
Table 14. Win32 Keyboard Map Functions for a 5250 Layout
Function of Key Key
Cut Ctrl+X
Copy Ctrl+C
Paste Ctrl+V
Enter Enter
New Line Right Ctrl
The keys PF7 and PF8 remains mapped to Roll Up and Roll Down, respectively.
For 3270 sessions, the .KMP file provided is pcswinkb3.kmp. The remapping is
given in Table 15.
Table 15. Win32 Keyboard Map Functions for a 3270 Layout
Function of Key Key
Edit Cut Ctrl+X
Edit Copy Ctrl+C
Edit Paste Ctrl+V
Page Up PF7
Page Down PF8
Enter Enter
New Line Right Ctrl
Cursor Color
By default, PC/3270 draws the underline cursor in white. If the background color
of the current field is white, the color of the underline cursor automatically
switches to black. PC/3270 draws the block and half-block cursors in the same
color as the current field, reversing the background and forground colors. This
behavior is identical to a 327x terminal.
If you want to change the default cursor color assignment, modify the pcswin.ini
file and add the CursorColor value to the Session stanza, as follows:
[Session]
CursorColor=<red_value> <green_value> <blue_value>
If you select a blinking cursor, it will always be drawn white, mixing the white
with the existing screen colors using an XORed operation. You cannot change the
cursor color when it is blinking.
Scroll Bar
If you choose Font from the Appearance menu in the host session window and
choose Fixed Size from the Select Display Font window, the entire operator
information area might not appear on the screen. If you specify With Scroll Bar,
the OIA will not scroll. The session window size is restricted to be smaller than the
screen size.
Scroll-Lock Key
When the Scroll Lock keyboard indicator is turned on, the cursor movement keys
and the Page Up and Page Down keys are used to scroll windows only when you
specify With Scroll-Bar in the Window Setup window. If you specify Without
Scroll-Bar, you cannot use the Scroll Lock key, because the entire screen is
displayed. For example, cursor-movement keys do nothing in Scroll Lock mode.
Sometimes, you might want to use a particular screen size when it is difficult to
have the host VTAM® table changed. The following method will satisfy your
requirement; however, because it violates SNA rules, some applications that refer
to the VTAM table only might not work.
Modify your workstation profile (.WS) to insert the following line into the [LU]
section:
[LU]
InfScreenSize=Y
Personal Communications processes byte 24 of the host BIND image correctly and
according to the SNA architecture. Byte 24 is the last 2 bytes of
PSERVIC=X’028000000000000000000300’ (03 in this case) in the log mode.
If byte 24 is X'03', the default screen size is 24 x 80 and the alternate is what you
configured with PC/3270.
If byte 24 is X'00' or X'02', the default and alternate screen sizes are 24 x 80.
If byte 24 is X'7E' or X'7F', bytes 20–23 in the BIND control the default and
alternate screen sizes.
If you have X'03' in the BIND image, you can customize whatever screen size you
want. The host will query Personal Communications and use the alternate screen
size.
PC/3270 supports Query Replies. Make sure that the Query Reply of Implicit
Partition returns the final screen size upon receipt of the BIND command.
You can use your original translation table if you refer to the following procedure
as an example. Note that the data integrity caused by the user-defined table is
your responsibility.
The following procedure is an example of how to remap left and right brackets.
1. Terminate all running 3270 sessions
2. Modify the PC/3270 workstation profile (*.WS).
[Translation]
IBMDefaultView=N
DefaultView=C:\Personal Communications\PRIVATE\BRACKET.XLT
3. Create the display translation table file (.XLT). In this example, the following
BRACKET.XLT file is created in the Personal Communications private
subdirectory.
[Option]
Replace=Y
[SB Xlate]
; EBCDIC=ANSI
; The next line displays EBCDIC X’AD’ as
; an ANSI X’5B’ (left bracket)
AD=5B
; The next line displays EBCDIC X’BD’ as
; an ANSI X’5D’ (right bracket)
BD=5D
4. Create your own keyboard layout (.KMP) if you need to enter your new left
and right brackets graphic symbols:
[Keyboard]
KEY27=ansi dd
KEY28=ansi a8
This parameter causes a 1000 msec (1 sec) delay between file transfers. If this does
not help, you might need to increase the value again.
Graphic Functions
This section provides information, restrictions, and considerations for graphic
functions.
Graphics Protocols
Personal Communications allows you to use host graphics applications, such as
GDDM and others. Two types of graphics are supported:
v Vector
v Programmed symbols
See Configuring Graphics in the online helps for a description of these protocols
and to learn how to configure your sessions for graphics.
Advanced Protocol: Use the advanced protocol when you have GDDM Version 2
Release 3 or later and are using any of the following operating systems:
v MVS
v VSE
v VM/SP
v VM/XA SP™
Native Protocol: Choose the native protocol when you intend to use older GDDM
versions or non-GDDM host-graphics applications, such as those originally
intended for use on 3270 nonprogrammable terminals as the 3179G, 3192G or
3472G. The native protocol also allows IMS/VS users to display GDDM graphics.
Programmed Symbols
Raster graphics are displayed with programmed symbols, which are downloaded
to your workstation. Personal Communications supports up to six sets (PSA
through PSF) of triple-plane and multiple-color programmed symbols.
Use programmed symbols as the graphics type when you intend to use host
graphics applications originally written for the 3279G terminal.
Note: If you use the OS2-Link (advanced) protocol under the GDDM program, do
not choose programmed symbols. Also, do not choose programmed symbols
when you use the OS2-Link protocol with other applications.
You can change the number of programmed-symbol sets and triple or single planes
available for each programmed-symbol set by editing the [3270] section of the
workstation profile:
PSSPlanes=xxxxxx
Each x represents a number (0, 1, or 3) that indicates how many planes are to be
available for each set; the first column indicates the number of planes for PSA, the
second column for PSB, and so on. For example, to enable six triple-plane
programmed symbol sets, enter the following:
PSSPlanes=333333
To enable two single-plane and two triple-plane sets, enter the following:
PSSPlanes=113300
Drawing-Buffer Size
The drawing-buffer size varies depending on the contents set for Redraw of a
graphic function.
To set Redraw, click Preferences → Appearance → Display Setup from the Edit
menu in the session window. Select Graphics from Category.
If you select Retained, the graphic execution module stores all redrawing data into
a buffer. Such a buffer is called a retained buffer. The buffer size varies depending
on the complexity of the graphic data from an application program. For example, a
simple table has a buffer size of 10 KB to 20 KB, while a complicated graphic
image has a buffer size of 200 KB to 300 KB.
When you select Bitmap to set Redraw, the buffer size will be the same as the sum
of the retained buffer size and compatible bit map size:
For example, when you select a 7x12 font for a VGA 16-Color Display Model 2
(24x80), the bitmap size is:
(7x80) x (12x24) x 1 x 4 / 8 = 80 KB
Example:
Example:
Note: With some printers, different printing results might be obtained in bitmap
mode and non-bitmap mode. If the desired results are not obtained, change
the current bitmap mode. For example, specify non-bitmap mode to print in
bitmap mode.
Edit-Copy Buffer
An editing operation causes the graphic execution module to copy a bit map and
DIBitmap to the clipboard. The bit map is compatible with the display; DIBitmap
is a 4-bit/pixel bit map.
Printer Fonts
The printer driver can handle two font sets, the device font and GDI font. The
device font is a hardware font built into the printer. The GDI fonts are System
(without brackets) or other software fonts for Windows.
Plotter
Because a plotter does not support a raster, the following restrictions are imposed
on drawing. Use a plotter for figures and tables that have mainly lines.
v No shading is supported.
v Some shading patterns cannot be distinguished.
v Image order drawing requires much time, and the final printout is of poor
quality.
v The OR and exclusive OR are not correctly reflected.
If you select Host or Retained to set Redraw on the Display Setup window, when
characters in a graphic image are cleared, a hole appears in the graphic area. This
is because these two modes do not have a bitmap image, and partial redrawing
cannot be performed on the screen.
If you select Bitmap mode as Redraw Graphics, you can find no hole on the
graphic region by the application that overrides any alphanumeric characters (as
well as NULL and SPACE) on the graphic image.
Note: When you change the setting of Redraw in the Display Setup window, the
set contents are valid from the next drawing.
Print Processing
You can change the standard timeout value by modifying the [CNDFT] section of
the workstation profile (*.WS):
[CNDFT]
PrtTimeOut=nn
When a non-SNA attachment is used, the timer should not be specified in the
workstation profile.
Note: The SCS TRN command (LU 1) is available in PDT mode only.
PDT Mode
Printing in PDT mode is restricted as follows:
v A graphic image is printed through the Windows printer driver specified in File
→ Printer Setup, even if the printer is set up for PDT mode.
v APL characters cannot be printed.
v PostScript printers are not supported.
SDDLU Considerations
PC/3270 supports the self-defining dependent logical units (SDDLU) function of
ACF/VTAM® Version 3 Release 4.1 (MVS) or Version 3 Release 4 (VM). SDDLU
provides the ability to dynamically create dependent LUs on predefined PUs and
to reconfigure dependent LUs without interruption to any other user on the
network and without intervention by system programming or operations staff.
PC/3270 SDDLU is supported for all connections except DFT (coaxial connection).
PSID Definitions
PC/3270 defines the default PSID for each LU type. Generally, the PSID contains
such things as the machine type and the model number. Table 16 describes the
machine type and model number definitions for each LU type that is supported by
PC/3270.
Table 16. Machine Types and Model Numbers for Supported LU Types
Machine Model
Type Number LU Type Screen/Buffer Size
3270 002 Display Model 2 screen 24 rows by 80 columns
3270 003 Display Model 3 screen 32 rows by 80 columns
3270 004 Display Model 4 screen 43 rows by 80 columns
3270 005 Display Model 5 screen 27 rows by 132 columns
3270 DS2* Printer 3270 data stream 24 rows by 80 columns
3270 DS3* Printer 3270 data stream 32 rows by 80 columns
3270 DS4* Printer 3270 data stream 43 rows by 80 columns
3270 DS5* Printer 3270 data stream 27 rows by 132 columns
Add a statement such as the following one to the [LU] definition in the
workstation profile. This example supersedes the default PSID with LUA0001.
PSID = LUA0001
Note:
PCT400 was withdrawn from marketing 3/98.
Host Requirements
For PC/3270 File Transfer in SBCS mode, you need one or more of the following
host file-transfer programs (referred to as IND$FILE):
v IBM 3270-PC File Transfer Program, 5665-311 (MVS/TSO)
v IBM 3270-PC File Transfer Program, 5664-281 (VM/SP 2.1)
v IBM CICS/VS 3270-PC File Transfer Program, 5798-DQH (CICS/VS 1.5)
For PC/3270 File Transfer in DBCS mode, you need one or more of the following
host file-transfer programs (referred to as APVUFILE):
v VM/CMS File Transfer Program, 5799-BWK (Japan)
v VM/CMS File Transfer Program, 5799-PGX (Korea, China, Taiwan)
v MVS/TSO File Transfer Program, 5799-BWJ (Japan)
v MVS/TSO File Transfer Program, 5799-PGY (Korea, China, Taiwan)
v CICS (MVS, VSE) File Transfer Program, 5799-BWL (Japan)
v CICS (MVS, VSE) File Transfer Program, 5799-PGZ (Korea, China, Taiwan)
A list file can be used for both Send and Receive. The default list file extension is
.SRL.
Note: You can also click the Browse button (for sending files) or the Clipboard
button (for receiving files) to open the corresponding dialog box, which
allows you to select files for transferring; when you click OK, the
selected files are shown in the Transfer List.
3. Click the Add to List button to include a selected file in the Transfer List.
4. After all desired files have been selected, click Save List.
The Save File-Transfer List File As window opens.
5. Enter or select a list name, and click OK.
Editing Lists
To edit the contents of a previously created list:
1. As explained in “Sending Files to the Host System” on page 55 and “Receiving
Files from the Host System” on page 56, display the Send File to Host or
Receive File from Host window.
2. Select Open List.
The Open File-Transfer List File window opens.
3. Select the name corresponding to the list file to be edited, then click OK.
4. The contents of the selected list appear in the Send File to Host or Receive File
from Host window.
5. Edit the contents of the list file.
Changing the contents of a list: Choose the file to be changed from the list,
and overwrite the items to be changed in the
text box; then click the Update in List button.
Removing a file from the list: Choose the file to be removed, and click
Remove from List.
Adding a file to the list: Double-click the file to be added from the list of host
or workstation files.
6. Select Save List.
The Save File-Transfer List File As window opens.
7. Enter a name and then click OK.
You can have up to 32 templates. They are automatically numbered from 1 to 32.
When you specify a file to be transferred, the workstation scans the templates,
starting from template 1. It uses the first matching template to generate a name for
the transferred file and the transfer type.
To manage a template:
1. Click Receive File from Host from the Actions menu or Send File to Host
from the Actions menu of the session window; or click the Send or Receive
buttons on the tool bar.
The Send File to Host or Receive File from Host window opens.
2. Select Template.
The Template window opens. The contents of the window depend on the
connected host system.
Adding Templates
The list box for the Template window lists the currently stored templates.
To add a template:
1. Select any template from the list box.
The contents of the selected template appear under the list box.
2. Change the workstation or host file names or extensions by overwriting them;
then select the transfer type. (For details of the transfer types, see “Defining
Transfer Types” on page 59.)
3. Click Add.
The window for determining where in the list to display the new template
opens.
4. Select a template number and specify whether to display the new template
before or after the template that has that number. Click OK.
The new template is added to the list in the appropriate position.
Testing Templates
To test the contents of an added or changed template:
1. Select the template to be tested from the list box.
Items to Be Specified
Choosing the appropriate property page enables you to set the items described in
the following sections.
File Options
The file options that can be used depend on the type of the connected host system
and the host code page selected when the session was configured. Table 17 on page
60 lists the mode values for the file transfer options. Table 18 on page 60 lists the
transfer options.
Record Format
Valid only for VM/CMS and MVS/TSO when APPEND is not specified for file
transmission. You can select any of the following:
v Default
v Fixed (fixed length)
v Variable (variable length)
v Undefined (undefined mode for MVS/TSO only)
If you select the Default value, the record format is selected automatically by the
host system.
Specifying Variable for VM file transfer enables host disk space to be used
efficiently.
The record length of a file sent from a workstation to the host system might exceed
the logical record length specified here. If so, the host file transfer program divides
the file by the logical record length.
When sending a text file from a workstation to a host, if the text file contains
2-byte workstation codes (such as kanji codes), the record length of the file is
changed because SO and SI have been inserted.
To send a file containing long records to the host system, specify a sufficiently long
logical record length.
Because the record length of a workstation file exceeds the logical record length, a
message does not appear normally if each record is divided. To display a message,
add the following specification to the [Transfer] item of the workstation profile:
DisplayTruncateMessage = Y
[Allocation Amounts]
Primary
Enter the number of tracks or cylinders allocated to this file transfer.
Secondary
If the primary allocation is not sufficient for the entire file transfer, enter
additional storage capacity allocated to the file transfer.
[Allocation Units]
Tracks
Specify this parameter to allocate a host file by track. Ask your system
manager whether to use tracks or cylinders as the unit.
Cylinders
Specify this parameter to allocate a host file in units of cylinders.
AVblocks
Specify this parameter to allocate a host file in units of blocks.
[Block size]
This item is used only to create a new data set. Enter the block size of a new host
data set, in bytes, in the text box. If this item is omitted, the workstation assumes
the value that appears in the Logical Record Length box. The maximum value is
32767. If AVblocks is selected, the block size is the block size of the new data set.
Additional Options
You can enter the required host command options in the Additional Options text
box.
The following sections contain information about the items which can be defined
for file transfer options.
Bidirectional Options
The following options apply if the session is configured for an Arabic or Hebrew
host code page.
v Host File Orientation
v PC File Orientation
v PC File Type
v Lam-Alef Expansion
v Lam-Alef Compression
v Symmetric Swapping
v Round Trip
v Numeral Shape
Refer to Quick Beginnings document or the online help for information about these
options.
Host Type
You can specify from the drop-down list box the type of host (MVS/TSO, VM, or
CICS) to which your workstation is connected.
Host Command
You can specify host command to be called when file transfer starts. If nothing is
entered in this text box, IND$FILE or its equivalent for other countries is used for
3270 SBCS and DBCS sessions.
Default PC Directory
You can specify the default directory that appears in the Send File to Host or
Receive File From Host window. To select the directory, click the Browse button.
PC Code Page
When a file is transferred, EBCDIC codes are converted to 1-byte workstation
codes, and vice versa. A valid value is automatically selected from among the
Packet Size
The amount of memory (in bytes) used by the workstation for transmission and
reception. If a large value is entered, a file is transferred more quickly, but the
memory overhead is larger. The default value is 12288. In the case of Telnet3270,
you can specify a packet size larger than 8000 bytes by adding the following line
to the Telnet3270 stanza in your workstation profile:
SendBufferSize=nnnn
File-Transfer Timeout
You can define the time the workstation waits for a response from the host system
(in seconds). If the host system does not respond, the transfer is canceled, and an
error message appears. A number in the range 20–65535 (or 0) can be specified.
The default is 60 seconds for ASCII sessions; for all others, it is 30 seconds. Specify
an appropriate value such that the error message does not appear too early. If you
specify 0, a timeout is not set.
If a packet or block size is relatively large for low-speed lines, such as SDLC or
COM port lines, it is recommended that 150 seconds or greater be specified.
Note: This will change the size of the record on the personal computer; this should
not be a problem for normal text files, but exercise caution when formatted
files and databases are being transferred.
When you use a DBCS session as the host session, that is, when 930 or 939
(Japanese), 933 or 1364 (Hangeul), 935 (Simplified Chinese), or 937 (Traditional
Chinese) is specified during configuration as the host code page, you can create
and change a translation table for the user-font area. A DBCS translation table is
then used for displaying a screen, printing, and sending and receiving files.
Clicking Import/Export loads a module into workstation memory. You can then
start Import or Export from a menu on the host screen.
When you Import a file to a host system, it must be accompanied by an IDP file of
the same name. If the necessary IDP file does not exist, you can create it as
described in “Creating IDP Files.”
For more information on using these commands, click Send File to Host from the
Actions menu and File Transfer from Command prompt in the help panel.
Similarly, for DBCS sessions, you can define a DOS environment variable
IND_FILE in AUTOEXEC.BAT or in a particular DOS box. For example:
SET IND_FILE = MYXFER
You should not use the following words as a VM file name or file type, as an MVS
data set name, or as a CICS file name, because they are reserved for use as option
commands.
Note: In the latter case, you must specify the NOCLEAR option for the file
transfer command.
If your screen is blank, make sure that no applications are running and that
your host session is not in a holding state.
Note: If you receive any messages from host application programs while you
are transferring files, the transfer might not succeed. To prevent
messages from interfering, enter the appropriate host command to set
messages off temporarily. When file transfer is finished, set messages on
again.
3. Switch to your DOS window session or DOS full-screen session.
Figure 1 shows the command and information that you must provide. Enter it as
shown (including parentheses). You can use either uppercase or lowercase letters.
Notes:
1. means to insert a space. There must not be a space between h: and fn.
2. For DBCS sessions, insert a left bracket ([) before (options.
Command Syntax for Sending Files to VM/CMS: The following examples show
the command syntax you can use to send files to a VM/CMS host. The parameters
of the SEND command can be combined into a single set of parentheses.
Note: For Japanese DBCS sessions, use the JISCII rather than the ASCII option. For
Hangeul, Simplified Chinese, and Traditional Chinese DBCS sessions, use
the ASCII rather than the JISCII option.
v To send a workstation file from your default drive and add it as a new file on
your VM/CMS A-disk:
SEND pc.txt a:cmsfile script a (ASCII CRLF LRECL 72 RECFM V
SEND pc.txt a:cmsfile script a [(JISCII CRLF LRECL 72 RECFM V (for DBCS)
Note: If you use a command that exceeds one line, do not press Enter when you
fill that line; continue typing your command.
This command sends a workstation file named PC.TXT from your default drive
to your host in your host session named a. You do not need to specify the
workstation drive if the file you are sending is on the current drive. The
command creates a new file, named CMSFILE SCRIPT, on your A-disk. The
records in the file can vary in length up to 72 characters.
v To send a workstation file from your default drive to replace a file on your
VM/CMS A-disk:
SEND pc.txt a:cmsfile script a (ASCII CRLF
This command sends a workstation file named PC.EXE from a diskette in drive
A to your VM/CMS B-disk in your host session named c. It is a new file, or it
replaces a file named CMSFILE.
When transferring a binary file, you must specify a variable record format
(recfm v), otherwise, blank characters are added to the file.
v To send a file from your hard disk and add it to the end of a file on your
VM/CMS A-disk:
SEND c:pc.txt cmsfile script a (ASCII CRLF APPEND
SEND c:pc.txt cmsfile script a [(JISCII CRLF APPEND (for DBCS)
This command sends a workstation file named PC.TXT from your hard disk to
your host session. You do not need to name the host session if you are sending
to the a session. The file is added to the end of a script file named CMSFILE on
your VM/CMS A-disk.
v To send a file from a subdirectory on your hard disk to your VM/CMS A-disk:
SEND c:\sd1\pc.txt cmsfile script a (ASCII CRLF
SEND c:\sd1\pc.txt cmsfile script a [(JISCII CRLF (for DBCS)
This command sends a file named PC.TXT from subdirectory SD1 on your hard
disk to your host session. It replaces a SCRIPT file named CMSFILE on your
VM/CMS A-disk.
Figure 2 shows the command and information you must provide. Enter it as shown
(including parentheses), except that you can use either uppercase or lowercase
letters.
Notes:
1. means to insert a space. There must not be a space between h: and fn.
2. For DBCS sessions, insert a left bracket ([) before (options.
Command Syntax for Receiving Files from VM/CMS: The following examples
show the command syntax you can use to receive files from a VM/CMS host. The
parameters of the RECEIVE command can be combined into a single set of
parentheses.
Note: For Japanese DBCS sessions, use the JISCII rather than the ASCII option. For
Hangeul, Simplified Chinese, and Traditional Chinese DBCS sessions, use
the ASCII rather than the JISCII option.
v To receive a file from your VM/CMS A-disk to your default drive for a
workstationsession:
74 Emulator User’s Reference
RECEIVE pc.txt a:cmsfile script a (ASCII CRLF
RECEIVE pc.txt a:cmsfile script a [(JISCII CRLF (for DBCS)
This command sends a SCRIPT file CMSFILE from your VM/CMS A-disk in a
host session named A to your workstation session. It adds the file to your
default drive (diskette or hard disk) with the name PC.TXT.
v To receive a file from your VM/CMS B-disk and replace a file on a drive other
than your default:
RECEIVE a:pc.txt a:cmsfile script b (ASCII CRLF
RECEIVE a:pc.txt a:cmsfile script b [(JISCII CRLF (for DBCS)
This command sends a SCRIPT file named CMSFILE SCRIPT from your
VM/CMS B-disk in a host session named A to a drive other than the default for
your PC session. It replaces a file named PC.TXT on a diskette in drive A.
v To receive a file from your VM/CMS A-disk and add it to the end of a file on
your hard disk:
RECEIVE c:pc.txt a:cmsfile script a (ASCII CRLF APPEND
RECEIVE c:pc.txt a:cmsfile script a [(JISCII CRLF APPEND (for DBCS)
This command sends a SCRIPT file named CMSFILE SCRIPT from your
VM/CMS A-disk in a host session named A to your workstation session. It adds
the contents of CMSFILE to the end of a file named PC.TXT on your hard disk.
v To receive a file from your VM/CMS A-disk and place it in a subdirectory on
your default drive:
RECEIVE \sd1\pc.txt a:cmsfile script a (ASCII CRLF
RECEIVE \sd1\pc.txt a:cmsfile script a [(JISCII CRLF (for DBCS)
This command sends a SCRIPT file named CMSFILE SCRIPT from your
VM/CMS A-disk to your default drive. It creates or replaces a file named
PC.TXT in a subdirectory named \SD1.
Figure 3 shows the command and information you must provide. Enter text as
shown (including parentheses), except that you can use either uppercase or
lowercase letters.
Notes:
1. means to insert a space. There must not be a space between h: and fn.
2. For DBCS sessions, insert a left bracket ([) before options.
You must use the NOCLEAR option when you are transferring files while
in ISPF command mode on the host.
v NOSO
v PROGRESS
v QUIET
v RECFM(x)
v SPACE(n[,n1]) unit
v TIME(n)
Command Syntax for Sending Files to MVS/TSO: The following examples show
the command syntax you can use to send files from your workstation to an
MVS/TSO host:
Note: For Japanese DBCS sessions, use the JISCII rather than the ASCII option. For
Hangeul, Simplified Chinese, and Traditional Chinese DBCS sessions, use
the ASCII rather than the JISCII option.
v To send a file from your default drive to replace a file on the MVS/TSO host:
SEND pc.txt g:ds.script ASCII CRLF
SEND pc.txt g:ds.script [JISCII CRLF (for DBCS)
This command sends a workstation file named PC.TXT from your default drive
to your MVS/TSO host in a host session named G. It creates or replaces a data
set named DS.SCRIPT on your MVS/TSO volume.
v To send a file from a drive other than the default to your MVS/TSO host:
SEND a:pc.txt g:ds.script ASCII CRLF
SEND a:pc.txt g:ds.script [JISCII CRLF (for DBCS)
This command sends a workstation file named PC.TXT from a diskette in
drive A to your MVS/TSO host in a host session named G. It replaces a data set
named DS.SCRIPT on your MVS/TSO volume.
v To send a file from your default drive to your MVS/TSO host and add it to the
end of an MVS/TSO data set:
SEND a:pc.txt g:ds.script ASCII CRLF APPEND
SEND a:pc.txt g:ds.script [JISCII CRLF APPEND (for DBCS)
This command sends a workstation file named PC.TXT from a diskette in
drive A to your MVS/TSO host in a host session named G. It adds the file to
the end of a data set named DS.SCRIPT on your MVS/TSO volume.
v To send a file to your MVS/TSO host and add it to the end of a data set that has
a password:
SEND a:pc.txt g:ds.script/odyssey8 ASCII CRLF APPEND
SEND a:pc.txt g:ds.script/odyssey8 [JISCII CRLF APPEND (for DBCS)
This command sends a workstation file named PC.TXT from a diskette in
drive A to your MVS/TSO host in a host session named G. It adds the file to
the end of a data set named DS.SCRIPT on your MVS/TSO volume. This data
set has a password of odyssey8.
v To send a file from a subdirectory on your hard disk to a partitioned data set on
your MVS/TSO host:
SEND c:\sd1\pc.txt g:ds.script (m1) ASCII CRLF
SEND c:\sd1\pc.txt g:ds.script (m1) [JISCII CRLF (for DBCS)
This command sends a workstation file named PC.TXT from a subdirectory
named \SD1 on your hard disk to your MVS/TSO host in a host session named
G. It creates or replaces a member named M1 in a partitioned data set named
DS.SCRIPT on your MVS/TSO volume.
v To send a file from your default drive and add it as a new data set on your
MVS/TSO volume:
SEND pc.txt g:ds.script/aeneid20 ASCII CRLF LRECL(132)
BLKSIZE(132) RECFM(V) SPACE(20,10) TRACKS
Figure 4 shows the command and information you must provide. Enter it as shown
(including parentheses), except that you can use either uppercase or lowercase
letters.
Notes:
1. means to insert a space. There must not be a space between h: and fn.
2. For DBCS sessions, insert a left bracket ([) before (options.
A The workstation drive and path to the directory where the file is to be
stored.
B The name of the workstation file to receive.
C The short name of the host session, and the data set name of the file you
are receiving.
D The member name if the file is put in a partitioned data set.
E The password of the data set, if any.
F Optional changes made to the file during transfer. More than one option
can be specified. Valid options are:
v APPEND
v ASCII
v BLANK
v CRLF
v JISCII (for Japanese DBCS sessions)
v PROGRESS
v QUIET
v SO
v TIME(n)
v USER
Command Syntax for Receiving Files from MVS/TSO: The following examples
show the command syntax you can use to receive files from your MVS/TSO host
to your workstation:
Note: For Japanese DBCS sessions, use the JISCII rather than the ASCII option. For
Hangeul, Simplified Chinese, and Traditional Chinese DBCS sessions, use
the ASCII rather than the JISCII option.
v To receive a data set from an MVS/TSO host to the default drive for your
workstation session:
RECEIVE pc.txt g:ds.script ASCII CRLF
RECEIVE pc.txt g:ds.script [JISCII CRLF (for DBCS)
This command sends a data set named DS.SCRIPT from your MVS/TSO volume
in a host session named G to your OS/2 session. It creates or replaces the file on
the default drive with the name PC.TXT.
v To receive a data set from an MVS/TSO host to a drive other than your default
drive:
RECEIVE A:pc.txt g:ds.script ASCII CRLF
RECEIVE A:pc.txt g:ds.script [JISCII CRLF (for DBCS)
This command sends a data set named DS.SCRIPT from your MVS/TSO volume
in a host session named G. It replaces a file named PC.TXT on a diskette in
drive A.
v To receive a data set from an MVS/TSO host and add it to a workstation file:
RECEIVE a:pc.txt g:ds.script ASCII CRLF APPEND
RECEIVE a:pc.txt g:ds.script [JISCII CRLF APPEND (for DBCS)
Using CICS SEND with the Personal Communications GUI: Use the following
information when sending a file to CICS using the Personal Communications
graphical user interface (GUI):
Figure 5 on page 84 shows the command and information you must provide. Enter
it as shown (including parentheses), except that you can use either uppercase or
lowercase letters.
Notes:
1. means to insert a space. There must not be a space between h: and fn.
2. For DBCS sessions, insert a left bracket ([) before (options.
Note: For SBCS sessions, the default options are ASCII and CRLF; for
DBCS sessions, the default option is BINARY.
Using CICS SEND with the Personal Communications Command Line: Use the
following information when sending a file to CICS using the Personal
Communications command line:
Figure 6 shows the command and information you must provide. Enter it as shown
(including parentheses), except that you can use either uppercase or lowercase
letters.
Notes:
1. means to insert a space. There must not be a space between h: and fn.
2. For DBCS sessions, insert a left bracket ([) before (options.
A B C D
Note: For SBCS sessions, the default options are ASCII and CRLF; for
DBCS sessions, the default option is BINARY.
CICS SEND Command Description and Options: The parts of the CICS SEND
command are:
SEND The command.
d: The name of the diskette or hard disk drive where the file is located.
path The path to the subdirectory that the file is in.
filename.ext
The name of the file to be sent, including the extension.
h: The short name of the host session where you want to send the file. If you
have only one host, this part is optional. The default is session A.
fn The name the file is to have on your CICS disk. You must specify the file
name. You can create a new name or use a name that is already on the
disk.
ft The type of file in CICS. For use only with command line syntax, see
“Using CICS SEND with the Personal Communications Command Line”
on page 84.
(options or [(options (for DBCS)
These options can be specified:
ASCII Performs the following:
v Converts 1-byte workstation codes to EBCDIC codes.
v Converts 2-byte codes to IBM host DBCS codes.
v Inserts SO and SI characters in a DBCS field and converts the
control characters ← and →, if they are present, to SO and SI
characters.
The default is ASCII CRLF. You need these control terms for text
or source files that you want to view or edit, such as SCRIPT files.
You do not need them for binary files.
Notes:
1. CRLF and NOCRLF are mutually exclusive options.
2. BINARY and ASCII are mutually exclusive options.
3. The assumed defaults, if the optional parameters are omitted,
are CRLF ASCII.
Command Syntax for Sending Files to CICS: The following examples show the
command syntax you can use to send files from your workstation to your CICS
host.
Note: For Japanese DBCS sessions, use the JISCII rather than the ASCII option. For
Hangeul, Simplified Chinese, and Traditional Chinese DBCS sessions, use
the ASCII rather than the JISCII option.
v To send a workstation file from your default drive and add it as a new file on
your CICS host:
SEND pc.txt a:cicsfile (ASCII CRLF)
SEND pc.txt a:cicsfile [(JISCII CRLF) (for DBCS)
Using CICS RECEIVE with the Personal Communications GUI: Use the
following information when receiving files from CICS using the Personal
Communications GUI:
Figure 7 shows the command and information you must provide. Enter it as shown
(including parentheses), except that you can use either uppercase or lowercase.
Notes:
1. means to insert a space. There must not be a space between h: and fn.
2. For DBCS sessions, insert a left bracket ([) before (options.
A The workstation drive and path where the file is to be received.
B The name of the workstation file.
Note: The default options for SBCS sessions are ASCII and CRLF; the
default option for DBCS sessions is BINARY.
Using CICS RECEIVE with the Personal Communications Command Line: Use
the following information when receiving files from CICS using the Personal
Communications command line:
Figure 8 shows the command and information you must provide. Enter it as shown
(including parentheses), except that you can use either uppercase or lowercase.
Notes:
1. means to insert a space. There must not be a space between h: and fn.
2. For DBCS sessions, insert a left bracket ([) before (options.
A B C D
A The workstation drive and path where the file is to be received.
B The name of the workstation file.
C The short name of the host session (h:) from which you are receiving the
file, the host file name (fn), and the file type (ft).
D Optional changes made to the file during transfer. More than one option
can be specified. Valid options are:
v ASCII
v BINARY (for SBCS sessions)
v BLANK
v CLEAR
v CRLF
v JISCII (for Japanese DBCS sessions)
v NOCLEAR
Note: The default options for SBCS sessions are ASCII and CRLF; the
default option for DBCS sessions is BINARY.
CICS RECEIVE Description and Options: The parts of the CICS RECEIVE
command are:
RECEIVE
The command.
d: The name of the diskette or hard disk drive where the file is to be
received.
path The path to the subdirectory where the file is to be located.
filename.ext
The name of the workstation file, including the extension. You can create a
new name or use a name that is already on your workstation diskette or
hard disk. If you use a new name, the file that you receive is added to
your diskette or hard disk. If you use the name of an existing file, the file
that you receive either replaces or supplements the existing file. Refer to
the APPEND option.
h: The short name of the CICS session where the data set is located. If you
have only one host, this part is optional. The default session is A.
fn The name of the file you want to receive from your CICS host.
ft The type of file in CICS. For use only with command line syntax, see
“Using CICS RECEIVE with the Personal Communications Command
Line” on page 88.
(options or [(options (for DBCS)
These options can be specified:
ASCII Performs the following:
v Converts EBCDIC codes to 1-byte workstation codes.
v Converts IBM host DBCS codes to 2-byte codes.
v Inserts SO and SI characters in a DBCS field and converts the
control characters ← and →, if they are present, to SO and SI
characters.
The default is ASCII CRLF. You need ASCII and CRLF control
terms for text or source files that you want to view or edit, such as
SCRIPT files. You do not need them for binary files.
Notes:
1. CRLF and NOCRLF are mutually exclusive options.
2. BINARY and ASCII are mutually exclusive options.
3. The assumed defaults, if the optional parameters are omitted,
are CRLF ASCII.
BINARY
The data in the file is binary data. The data can be encrypted data,
Note: For Japanese DBCS sessions, use the JISCII rather than the ASCII option. For
Hangeul, Simplified Chinese, and Traditional Chinese DBCS sessions, use
the ASCII rather than the JISCII option.
v To receive a file from your CICS host to your default drive for a workstation
session:
RECEIVE pc.txt A:cicsfile (ASCII CRLF)
RECEIVE pc.txt A:cicsfile [(JISCII CRLF) (for DBCS)
This command sends a file named CICSFILE from your CICS host in session A
to your workstation session. It adds the file to your default drive (diskette or
hard disk) with the name PC.TXT.
v To receive a basic file from your CICS host and replace a file on a drive other
than your default:
RECEIVE a:myprog.exe a:myprog
This command sends a file named MYPROG from your CICS host in session A
to a drive other than the default for your workstation session. It replaces a file
named MYPROG.EXE on a diskette in drive A.
Scroll Bar
When you click Font from the Appearance menu in the host session window and
select Fixed Size from the Select Display Font window, the entire operator
information area might not appear on the screen; the session-window size is
restricted to be smaller than the screen size. If you specify With Scroll Bar, the
OIA will not scroll.
Print Processing
Following are some additional considerations when printing with PC400.
Printable Area
Depending on the printer driver used, it might not be possible to use the entire
surface of the paper for printing.
PDT Mode
Printing using a PDT file is restricted as follows:
v Only the fonts specific to the printer being used are supported.
v Graphics are printed using the Windows printer driver selected in Printer
Setting, regardless of the PDT mode.
v Postscript printers are not supported. There are no PDF files for Postscript
printers.
You can change the code page by using Set GCGID Through GCID (SCG)
command or Set CGCS Through Local ID (SCGL) command. The same code pages
for the display session are available.
Be particularly careful when only the field subset of the eServer i5 or iSeries file
can be transferred from the eServer i5 or iSeries system to a workstation by the
previous transfer request. When data is returned to the eServer i5 or iSeries
system, new members can receive only the subset defined in that eServer i5 or
iSeries file. Other character fields that are defined, but not transferred are filled
with blanks. Numeric fields are filled with zeros or the valued specified at file
creation. The date, time, and time-stamp fields use eServer i5 or iSeries default
values.
There are two ways of transferring data to new members in a new eServer i5 or
iSeries file. The method used depends on the data to be transferred.
v For data that is broken up into fields, correct conversion is achieved by
transferring it in units of fields. Specify use of the workstation file-description
file at data transfer. In addition, specify data as the type of the eServer i5 or
iSeries file.
When an eServer i5 or iSeries file and its members are created, the transfer
function must access the description of the format of each field to be transferred
in the eServer i5 or iSeries file. You can get this description, called a
field-reference file, from the eServer i5 or iSeries file. To create an eServer i5 or
iSeries file and its members, specify the name of this eServer i5 or iSeries field
reference file, as well as the parameters for the other files and members. Note
that only the fields to be transferred are defined in a new file.
v For data consisting only of text or source statement records, it is not necessary to
break up the records into fields. In addition, the workstation file-description file
is not required to transfer data. In other words, an eServer i5 or iSeries physical
source file is created.
Note the following considerations when transferring data to and from an eServer
i5 or iSeries physical source file:
v To transfer text from the eServer i5 or iSeries system to a workstation, specify
the name of the source file and members in FROM. Specify an asterisk (*) in
SELECT. This informs the eServer i5 or iSeries system that only text is
transferred from the source file, with the order number and date fields excluded.
v The eServer i5 or iSeries text must be stored in the workstation code text file.
Normally, a workstation text editing program can be used to manipulate this
workstation code text file.
v Specify that the file-description file is not to be stored for that workstation file.
Because text is assumed to be a record consisting only of character data, it is not
necessary to define fields.
v To return text from a workstation file to an eServer i5 or iSeries file, specify the
type of the workstation file containing the text. This is almost always
workstation code text. Specification of the file-description file is not required.
v To create a new eServer i5 or iSeries file and its members, specify a valid record
length. This record length must be equal to the maximum record length of the
workstation file, plus 12 bytes. This is because the transfer function
automatically creates the order number and date fields when the file is
transferred to the eServer i5 or iSeries members. The order number and date
fields together occupy 12 bytes.
Transfer Function
You can transfer only source programs, records, and the following information:
v Information organized for analysis
v Information used for decision making
v Information suited for computer processing
When using a spreadsheet, for example, you might want to use inventory data to
create a cost analysis report. If there is no way to copy the data into the
workstation, you must print the data from the eServer i5 or iSeries system and
manually type it into a workstation file. With the transfer function, however, you
can access the inventory database directly, select only the data needed for the
report, process the data as required, then complete the report using that data.
You can also send data from the workstation to the host system for processing by
eServer i5 or iSeries application. When a remote user is authorized to access the
eServer i5 or iSeries system directly, he or she can access the created cost analysis
report to compare with their results.
Figure 9 outlines the joining of two files, transferring the information to the
workstation, and creating a report.
iSeries
Sales
Cost Workstation
Cost Product
Run Cost
Product Transfer
Request
Inventory
Product
To transfer data by using PC400, you must create a transfer request. A transfer
request provides the necessary information about the data you want to transfer.
Before creating a transfer request, you must have the answers to the following
questions:
Where is the data located?
How much of the data do you want to transfer?
How should the data be sorted?
Where do you want data to be transferred?
Data transfer can also be classified according to how the program is started, as
follows:
v Data is transferred by interactively entering information such as what data is
transferred from which file to which file on the screen. In this case, the interactive
screen for sending is called the PC→iSeries Transfer window, and that for
receiving is called the iSeries→PC Transfer window.
v Data is transferred according to the information that has already been registered.
The interactive screen is not necessary. This is called the automatic transfer of
data.
The Data Transfer icon is registered in the PC400 folder by installing PC400.
Double-clicking on this icon displays the iSeries→PC Transfer window (for
receiving). This icon includes:
\Personal Communications\PCSFT5.EXE
The PC→iSeries Transfer window (for sending) opens when the registered contents
are changed as follows:
\Personal Communications\PCSFT5.EXE
The iSeries→PC Transfer and PC→iSeries Transfer windows have a Switch to SEND
button and Switch to RECEIVE button, respectively. By clicking either of these
buttons, the window for sending can be switched to the window for receiving, and
vice versa.
To perform automatic transfer, you must create transfer information, using the
interactive screen window, and then save the information. You can then perform
data transfer automatically by specifying the file name in which the data was
saved.
When you save the transfer information, register it as an icon in the PC400 folder.
You can then transfer data automatically simply by double-clicking on this icon.
Workstation Files
To transfer data from a workstation to the eServer i5 or iSeries system, the transfer
function uses a special-format workstation file, called a file-description file. Using
this file, data is stored in a valid format and converted into a valid type.
A file-description file identifies the format of a workstation data file and contains a
description of the fields in the data file. The file-description file also contains a
name list of all the fields in the data file. This list reflects the order, as well as the
names, in which each field appears within the data file. In addition, this list
includes a description of the data type, length, and decimal position of each field.
Using this information, the transfer function can recognize not only how data has
been modified but also where a certain field exists in a file record.
You must create a file-description file with the same name as the workstation data
file to transfer a workstation data file to the eServer i5 or iSeries system.
Items to Be Specified
The following section explains the items that you specify in the PC→iSeries Transfer
window.
FROM
PC file name
This item is always required. It specifies the name of the workstation file
containing the data to be transferred to the eServer i5 or iSeries system. Specify
this item using the following format. (Items inside brackets [ ] can be omitted.)
[d:][path-name]file-name[.ext]
A list of workstation files can be displayed by selecting Browse. You can limit
the number of names listed. To limit the listing, specify a combination
consisting of part of a file name and a global file name character (* or ?) in the
input area of the workstation file list. For example:
v When you click OK with /A: specified, the displayed listing contains the
names of all files in the current directory of the diskette inserted into drive
A.
v When you click OK with A:\SUPPLY\ specified, the displayed listing
contains the names of all files under the SUPPLY path of the diskette
inserted into drive A.
TO
System name
This item is always required. When the router program is active, this item
specifies the default system name.
Library/File (Member)
This item is always required. It specifies the name of the eServer i5 or iSeries
physical file that will receive the data to be transferred from the workstation.
You can specify either an existing file name or new file name.
Specify this item using the following format. (Items inside brackets [ ] can be
omitted.)
[library-name/]file-name[(member-name[,record-format-name])]
library-name
This is the name of the eServer i5 or iSeries library containing the
eServer i5 or iSeries file to which data is to be transferred. If no library
is specified, *LIBL is used. To create a new file to receive transferred
data, specify the library name.
When the input field is null and Browse is selected, the eServer i5 or
iSeries system displays a list of all libraries defined in *USRLIBL of the
eServer i5 or iSeries job library list. You can modify this list by
changing the job description. Run a change job description (CHGJOBD)
command on the eServer i5 or iSeries system.
file-name
This is the name of an eServer i5 or iSeries physical database file.
When data is transferred to an existing file, the data in that file is
replaced with the transferred data. To create a new file to receive
transferred data, specify a new file name of 1 to 10 characters.
To list the available files, do one of the following things:
v To list all files within all libraries defined in *USRLIBL of the eServer
i5 or iSeries job library list, specify *USRLIBL followed by a slash
(/), then select Browse. If a slash (/) is not specified after the library
name, the eServer i5 or iSeries system displays a list of library
names rather than the file names.
v To list the names of the files in a certain library, specify the library
name followed by a slash (/), then select Browse. You can also
specify a part of a file name followed by an asterisk (*), then select
Browse. The eServer i5 or iSeries system lists all the files whose
names begin with the specified character string.
member-name
This is the name of a member in the specified eServer i5 or iSeries file
to which data is to be transferred. If this member name is not
specified, data is transferred to the first member, *FIRST, in the eServer
i5 or iSeries file.
To transfer data to an existing file, specify the member name. The data
within that file member is replaced with the transferred data.
To create a new member in an existing file or in a new file, specify a
new member name of 1 to 10 characters.
Note: A library name, file name, member name, and record format name can
be specified using up to 10 characters each. Each name must begin with
one of the following characters: A to Z, ¥, #, or @. For characters
subsequent to the first, the numbers 0 to 9, underscores, and periods can
also be used.
Advanced Options
The following advanced options are available for PC→iSeries Transfer.
Use of File Description File: This item specifies whether a file-description file is
used to transfer data to the eServer i5 or iSeries system. The file-description file is
required to transfer a workstation file, containing the data to be transferred (and
converted), in fields. Such a workstation file can have either several fields or
numeric data fields. To transfer a workstation file containing text (character data)
only, the file-description file is not required. For details on creating a
file-description file, see “File-Description Files” on page 138.
v Do not specify this item in the following case: a workstation file having only one
field (for example, PC code character) is specified in FROM, while the eServer i5
or iSeries file is a physical source file having the following record format.
Field Type Length " " Decimal Places
Note: When fields contain character data or zoned data only, the data portion
can be broken down into several fields. The destination eServer i5 or
iSeries file contains the fields for order number and date. The workstation
file, however, does not. This method is recommended when transferring
text only between the eServer i5 or iSeries system and the workstation.
v Specify this item in all other cases. Two examples are:
– Data is transferred from a workstation file having more than one field.
– The eServer i5 or iSeries file that receives the data is other than a physical
source file having the record format described above.
A file-description file must be created when the data has not yet been transferred
from the eServer i5 or iSeries system to a workstation or when no file-description
file exists.
PC File Type: This item appears only when Use of File Description File is not
specified.
This item is always required. You must specify the type of the workstation file
specified in the FROM field. The values provided by the eServer i5 or iSeries
system are recognized as workstation code text. If the file type of a data file is not
converted, the file can include nothing other than data that does not require
conversion.
iSeries Object: This item is always required. It specifies whether the eServer i5 or
iSeries member to which data is transferred is a new member or an existing
member. When data is transferred to a new member, this item also specifies
whether the file to contain the new member is an existing file.
Create New Member
This item specifies that a new member, to which data is transferred, is
created in an existing eServer i5 or iSeriesfile.
Notes:
1. To create a new member, you must have the following authorities:
v *OBJOPR, *OBJMGT, and *ADD for the file that will include the new
member
v *READ and *ADD for a library that will contain the file
See Security Descriptions (SC41-8083) for details of object authorities.
2. To create a member to add to a file, the transfer function uses the
eServer i5 or iSeries default value for the add physical file member
(ADDPFM) command.
When you specify this item, the following item must also be specified:
Member Text
This item is used to add an explanation of a new eServer i5 or
iSeries member. This explanation helps remind you of the contents
of the member. This explanation appears, for example, when a list
of all members in a file is requested (Browse is selected). If this
item is left blank, no explanation is added to the new eServer i5 or
iSeries member.
To specify an apostrophe (’) in the explanation, enter two
apostrophes (’ ’).
Create New Member in New File
This item specifies that a new member, to which data is to be transferred,
is created in a new eServer i5 or iSeries file.
If you enter part of a file name followed by an asterisk (*) and then
select Browse, the system displays a list of available file names,
each beginning with the specified part of the name.
Note: You must have *OBJOPR authority for the field-reference file
to be specified. To list certain files, you must also have
*OBJOPR authority for those files.
Record Length
This item is always required. It specifies the record length of an
eServer i5 or iSeries physical source file. When the data receiver is
an eServer i5 or iSeries physical source file, the specified value
Clicking the Icon with Which the Transfer Request Has Been Registered: This
method can be used only when a transfer request has been saved as an icon by
using the PC→iSeries Transfer window.
The workstation transfers records, one at a time, from the file specified in FROM.
Transferred records are converted and stored in the eServer i5 or iSeries member
specified in TO.
During this conversion process, conversion errors might occur. For example, the
values in a workstation file might have to be rounded to fit the eServer i5 or
iSeries fields. Another example is the case where the record length of a workstation
file differs from that expected by the eServer i5 or iSeries system.
If such an error occurs, an error message is issued with the number of the
workstation file record for which the error occurred and, sometimes, information
about certain fields in that record.
If a severe error occurs, data transfer might stop. In such a case, stop the transfer
request, correct the error, then rerun the transfer request.
When the error is not so severe, you can request that the system continue
transferring data. By doing so, even if the same error occurs in another record, an
error message does not appear and the transfer function automatically continues
executing the transfer request.
Items to Be Specified
The following section explains the items to be specified using the iSeries→PC
Transfer window.
FROM
System name
This item specifies the name of the host system that contains the data to be
received. When the router program is active, this item specifies the default system
name.
Library/File (Member)
This item is always required. It specifies the name or names of one or more files
used to store data to be transferred. Up to 32 file names can be specified. To
specify several files, delimit them with commas and use JOIN BY, displayed after
all FROM items have been specified. Only the file name must be specified. Do not
specify a comma as a part of a file name. When the other optional items are not
Note: To transfer data from an eServer i5 or iSeries physical file, you must have
*USE authority for that file. To transfer data from an eServer i5 or iSeries
logical file, you must have *OBJOPR authority for that file and *READ
authority for each subordinate file.
Specify file names as follows. (Items inside brackets [ ] can be omitted.) To specify
several file names, delimit the names with commas.
[library-name/]file-name[(member-name[,record-format-name])],
[library-name/]file-name[(member-name[,record-format-name])],...
library-name
This is the name of the eServer i5 or iSeries library that contains the
eServer i5 or iSeries file to be transferred. This eServer i5 or iSeries file
contains the data to be transferred from the eServer i5 or iSeries system to
a workstation. If this library name is not specified, *LIBL is assumed. If
you cannot find the desired library, selecting Browse displays a list of all
libraries defined in *USRLIBL of the eServer i5 or iSeries job library list.
*USRLIBL of the library list can be changed by modifying the job
description by executing the CHGJOBD command on the eServer i5 or
iSeries system.
file-name
This is the name of the eServer i5 or iSeries physical file, logical file, or
DDM file from which data is transferred. This file name must always be
specified. To specify a file name and library name concurrently, delimit
them with a slash (/). If you cannot find the desired file name, enter the
library name followed by a slash, then select Browse. The system then
displays a list of files contained in that library. To display a list of all the
files in the libraries defined in *USRLIBL of the eServer i5 or iSeries job
library list, enter *USRLIBL/, then select Browse.
member-name
This is the name of the eServer i5 or iSeries member containing the data to
be transferred, or *FIRST. If this member is not specified, the system
assumes *FIRST, and the first member of that file is used.
record-format-name
This is the name of the record format contained in the specified eServer i5
or iSeries file, or *ONLY. Before specifying the record format name, specify
the member name or *FIRST. If the record format name is not specified, the
system assumes *ONLY, and the only record format for that file is used. To
specify a record format name, delimit the record format name and member
name with a comma.
When the specified eServer i5 or iSeries file has several record formats, a
record format name must be specified. If the file member name is not
specified, a record format name cannot be specified.
Notes:
1. A library name, file name, file member name, and record format name can be
specified using up to 10 characters for each. Each name must begin with A to
Z, ¥, #, or @. For characters subsequent to the first, 0 to 9, underscores, and
periods can also be used.
For example, you might want to transfer data from file member ITEMMBR1 (first
member) of file ITEMMAST in library ITEMLIB. ITEMFMT is the only record
format of this file. The specification will be as follows:
ITEMLIB/ITEMMAST(ITEMMBR1,ITEMFMT)
Alternatively, specify:
ITEMLIB/ITEMMAST
To transfer a summary record, do not leave this input area blank or specify an
asterisk (*) (except when all the fields of the file specified at the prompt are
specified in GROUP BY). The field names specified in SELECT (except for those
specified in functions) must also have been specified in GROUP BY.
The functions and fields specified in SELECT return actual summary information
for each group. Enter the field names and functions in SELECT in the order in
which they are to be displayed.
Note: Null values are not included in the functions. When an entire value is null,
the function output is set to null, except for COUNT. The COUNT output is
0.
This indicates that the average, minimum, and maximum values for PRICE are
calculated for each supplier after SUPPNO has been selected. A summary record is
transferred according to the function selection. Specify SUPPNO in GROUP BY,
because SUPPNO has not been used for the functions.
Advanced Options
The following advanced options are available for iSeries→PC Transfer.
JOIN BY: When several files have been specified in FROM, specify JOIN BY.
When only one file has been specified in FROM, JOIN BY does not appear.
JOIN BY specifies how to link or join the records of the files specified in FROM.
Each file specified in FROM must be joined with at least one other file that has
been specified in FROM.
Use JOIN BY to specify one or more join conditions. The join conditions indicate
the similarity of two files. Therefore, they indicate which records of one file are
joined with those of another.
Field name is the name of the field defined in the record format specified in
FROM. The join conditions require two field names, one for each file to be joined.
The field name to be specified might have been defined in the files specified in
FROM. When such a field name is used in the following items, prefix the field
name with the file qualifier:
v JOIN BY
v GROUP BY
v SELECT
v WHERE
v HAVING
If the field name of the file specified in FROM cannot be found, select Browse
when the cursor is on the JOIN BY input area. Then, a list of file qualifiers and
field names of the files appears.
To join three or more files, or to join two files based on two or more common
fields, two or more link conditions must be used. To specify several join
conditions, join the conditions with AND. For example:
T1.EMPNO = T2.EMPNO AND T2.EMPNO = T3.EMPNO
In this case, records having the same value as EMPNO are joined between the first
and second files specified in FROM. Then, such records are joined between the
second and third files specified in FROM.
GROUP BY: This item is required only to classify eServer i5 or iSeries file records
into several groups. When no value is specified in GROUP BY, all the records are
treated as a single group.
If GROUP BY is not displayed, select Group functions at the bottom right of the
screen. Then, GROUP BY appears. GROUP BY and HAVING are displayed
concurrently. You can specify either, both, or neither.
When GROUP BY and HAVING are displayed but you do not want to specify
either, select Remove Group functions. The two items disappear.
To classify several records into groups, specify one or more fields to act as the base
for grouping. Records are grouped according to the field specified first, then by the
field specified second, and so on. For example, suppose that the following
groupings are specified:
SHIFT, DEPTNO
In this example, the records are first grouped by SHIFT. Records belonging to a
single group will subsequently have the same value as SHIFT. Then, the records in
each group are grouped by DEPTNO. When there is only one record having a
certain SHIFT value, the group has only one record.
Delimit field names with commas. Blanks can be specified to improve readability.
Up to 50 field names can be specified. These fields must have been defined in the
record format defined in FROM.
If a field cannot be found, selecting Browse displays a list of all the fields
contained in the record.
The field to be specified must have been defined in the record format specified in
FROM.
To transfer all the fields in the specified record, specify an asterisk (*) in this input
field. (Specifying an asterisk causes all fields in the record to be transferred.)
Note: Up to 256 fields can be transferred. When more than 256 fields have been
defined in a file, an asterisk cannot be used. In this case, specify the names
by selecting the fields to be transferred.
To transfer fields by selecting from a record, enter the field names in the order in
which the fields are arranged. One or more blanks can be placed between the field
names to improve readability. However, the names must be delimited by commas,
as follows:
ITEMNO, QONHAND, PRIC
When records are transferred from an eServer i5 or iSeries source file, specifying an
asterisk (*) causes all fields in the file to be transferred, with the exception of the
order number field and date field. (To transfer all the fields, including the order
number field and date field, specify all the field names, including each data field
name.)
WHERE: This item is optional. It specifies one or more conditions that records to
be transferred must satisfy.
To transfer summary records, use this item to specify which records are to be
grouped, then group the records. Using this item, you can specify one or more
conditions that the record must satisfy to belong to a certain group. When WHERE
is not specified, all records are grouped.
As the conditions, specify the test to be applied to the records in the specified file
member. All the records in the specified file member are tested for the conditions
specified here. Only those records that pass this test are transferred.
When WHERE is not specified, all records in the specified file member are
transferred.
The following example searches for all last names beginning with
character J.
LSTNAM LIKE ’J%’
When the pattern does not include a percent character (%), the
length of the character string must be identical to that of the field.
Using the BETWEEN Test
The BETWEEN test checks the fields specified in the field name for
character strings or numeric values that are equal to or between
the specified constants. The values to be tested must be two
character-string constants or two numeric constants. The types of
these constants must be identical to that of the field name specified
by the user. Delimit the two constants with AND.
The following example searches for those records for which the
price is between 50.35 and 75.3, inclusive:
PRICE BETWEEN 50.35 AND 75.3
The following example searches for those records for which the
name begins with C:
NAME BETWEEN ’C’ AND ’CZZZZZZZZZ’
The following example searches for those records for which the
balance is between 0 and 5 000.
BALDUE BETWEEN 0 AND 5000
This example searches for those records for which the name is
SMITH, JONES, or ANDERSON.
The following example searches for the values in the STATE field
for which the value is other than NY, MN, or TX:
NOT STATE IN (’NY’ ’MN’ ’TX’)
NOT can also be used. The following example selects items where
data is transferred not only from those records in which the DEPT
field is not equal to 470, but also from those records for which the
DEPT field is equal to 470 and, additionally, STATE is equal to NY.
NOT (DEPT = 470) OR (DEPT = 470 AND
STATE = ’NY’)
Comparison can start from a certain line and end at the next line.
However, a field name cannot start from a certain line and end at
the next line. Field names must not exceed one line.
Pay particular attention to the difference between HAVING and WHERE. WHERE
operates on each record within a certain group. HAVING, on the other hand,
operates only on summary records (records that contain summary information for
each group).
With this item, you can specify one or more conditions that a summary record
must satisfy prior to being transferred.
As the conditions, specify the tests that should be applied to the summary records.
The specified test conditions are applied to all summary records, only those
summary records that pass the tests are transferred. To transfer all summary
records, leave the HAVING item blank.
This indicates:
function
This is a function supported for SELECT. See the description of SELECT in
this section for details of these functions.
field-name
This is the field defined by the record format specified in FROM. A field name
is acceptable even when it has not been specified in SELECT.
Test
This is the comparison type for functions. The types are listed below.
= Equal to
<> or ><
Not equal
> Greater than
>= Greater than or equal to
< Less than
If the desired field cannot be found, selecting Browse displays a list of the
names of all fields in the record.
The type, length, digit, and number of decimal places of the value returned for
each function are:
Type Length Digit Decimal Places
SUM Packed 16 31 (Same as tested field)
AVG Packed 16 31 31 (Total of the digit
and decimal places
of the field)
COUNT Binary 4 10 0
MAX (Same as tested field)
MIN (Same as tested field)
ORDER BY: This item is optional. It specifies the order in which the requested
records are grouped. When ORDER BY is not specified, record transfer is not done
according to a certain order.
Records are grouped according to the field specified first. Those records having the
same value in each field specified first are grouped by the field specified second,
and so on. Records containing null values are grouped after all records without
null values have been grouped.
In this case, records are first grouped according to DEPT. Then, the records having
the same value for DEPT are grouped by NAME. The records with the same DEPT
and NAME values are finally grouped by PHONE.
When a field name is specified in ORDER BY, it must also have been specified in
SELECT, or SELECT* must have been specified.
Absolute values (ABS) can be specified for numeric fields. To do this, add a blank
after a field name then enter ABS. For those fields having negative values, the
negative signs are ignored and the absolute values are used.
The total length of the fields to be specified must not exceed 120 digits.
Return Record at Missing Field Value: When joining records from several files,
joining might fail because a record is missing. This item specifies whether records
with missing fields are transferred.
When you specify that records with missing fields are to be transferred, the
alternative values for the missing fields are transferred. These values are normally
blanks for character fields and zeros for numeric fields.
When you do not specify transfer of records with missing fields, those records are
not transferred.
Specify this item to transfer data records that have alternative values for missing
fields.
Do not specify this item if data records that have alternative values for missing
fields are not to be specified. In this case, only those data records created from
those records that exist in all files specified in FROM are transferred.
TO
Output device
This item specifies where received data is to be sent.
Display
The received data is displayed on the screen.
Disk The received data is written to a workstation diskette or hard disk file.
Printer
The received data is printed on the printer.
When Disk is selected as the output device, also specify the following items.
PC file
This item specifies the name of the workstation disk file or diskette file to
which the data is to be written.
Replace old file
This item is always required. It specifies whether the records in the file
specified by PC File are to be replaced with the transferred records.
The default value is Replace old file.
Workstation file type
This item is always required. It specifies the type of the workstation disk
file or diskette file to which the transferred records are written.
The system default is PC code test.
Save transfer description
This item is always required. It specifies whether the workstation file
After Save File Description File is specified or a name is specified for File
Description File Name, the iSeries→PC Transfer Request window reopens
after the Return key is pressed. Using this screen, a transfer request can be
changed, saved, or executed.
Selecting the Icon with Which the Transfer Request Has Been Registered: This
method can be used only when a transfer request has been saved as an icon by
using the iSeries→PC Transfer window.
Data transfer starts as soon as you select the icon with which a transfer request has
been registered.
Each field in a transferred record is converted from the eServer i5 or iSeries data
type to workstation code.
Note: The workstation receives the eServer i5 or iSeries records in order and then
writes them to a temporary file of the default directory in the default drive
(usually, the directory in which PC400 is installed). The maximum number
When Disk is selected as the output device, the following actions are performed:
1. The workstation file description is written to a workstation disk file or diskette
file according to the Save File Description File specification. (If Save File
Description File has not been specified, this procedure is not performed.)
2. The transferred records are written to a workstation disk file or diskette file.
CRTFILE MBRTEXT
CRTMBR PUBAUT
FILETEXT RCDLEN
FILETYPE REFFILE
INTO
For a transfer request from the eServer i5 or iSeries system to a workstation, none
of the following reserved words can be used as a file name or field name:
ABS IS
AND ISNOT
ASC LIKE
AVG MAX
BETWEEN MIN
BY NOT
COLUMNS OPTIONS
COUNT OR
DESC ORDER
EXTRACT PARTOUT
FROM REPLACE
GROUP SELECT
HAVING SUBSTR
IN SUM
INNER TABLES
WHERE
To use one of these reserved words as a file name or field name, use the reserved
word in uppercase, enclosed in quotation marks:
TO MYLIB/"INTO"
This section describes how to transfer data from the eServer i5 or iSeries system,
based on the inventory control file INVENTORY and supplier file SUPPLIERS.
The SUPPLIERS file contains information about the suppliers of each part. Each
supplier is identified by a two-digit number, SUPPNO. The SUPPLIERS file
contains the number of parts delivered (PARTNO), their prices (PRICE), times of
delivery (DELIVTIME), and ordered quantities (QONORDER). The parts listed in
the SUPPLIERS file are the same as those listed in the INVENTORY file.
File: SUPPLIERS
Field name: SUPPNO PARTNO PRICE DELIVTIME QONORDER
------ ------ ----- --------- --------
Record 1: 51 221 .30 10 50
2: 51 231 .10 10 0
3: 53 222 .25 15 0
4: 53 232 .10 15 200
5: 53 241 .08 15 0
6: 54 209 18.00 21 0
7: 54 221 .10 30 150
8: 54 231 .04 30 200
9: 54 241 .02 30 200
10: 57 285 21.00 14 0
11: 57 295 8.50 21 24
12: 61 221 .20 21 0
13: 61 222 .20 21 200
14: 61 241 .05 21 0
15: 64 207 29.00 14 20
16: 64 209 19.50 7 7
In this case, only part of the INVENTORY file is to be transferred. Specifically, only
the part number (PARTNUM) and quantity on hand (QONHAND) fields of the
records for which the number of parts in stock is less than 100 (QONHAND < 100)
are transferred. Records are transferred in ascending order of parts numbers
(PARTNUM).
You might want to transfer information on part numbers, part names, and the
prices of the parts to be ordered from supplier 51. The desired fields are PARTNO
(SUPPLIERS file), DESCRIPTION (INVENTORY file), and PRICE (SUPPLIERS file).
By comparing the data in the INVENTORY file and the SUPPLIERS file, the user
can determine that supplier 51 provides part numbers 221 and 231, called BOLT
and NUT, respectively, and that their prices are 30 cents and 10 cents, respectively.
The following table summarizes this information:
Field: PARTNO DESCRIPTION PRICE
------ ----------- -----
Record 1: 221 BOLT .30
2: 231 NUT .10
The same results are available by joining the data in these two files by using the
iSeries→PC Transfer function. To do this, specify both files (INVENTORY and
SUPPLIERS) in the FROM item. For SELECT, specify which fields are to be
transferred (PARTNO, DESCRIPTION, and PRICE). For WHERE, specify which
records are to be transferred (records for which SUPPNO = 51).
Respecify the relationship between the two files in JOIN BY. From these results,
the user can determine, by checking the SUPPLIERS file, that part number 221 is
delivered from supplier 51 at a cost of 30 cents. In addition, to determine the part
name, the user must check the INVENTORY file for part number 221 and its
product name. In other words, the user observes that data is joined from the
records in both the SUPPLIERS file and the INVENTORY file and that those
records have the same part number. Therefore, to link the two records in these
files, the records must have the same part number.
Qualifiers are not needed for the names of the DESCRIPTION, PRICE, and
SUPPNO fields, because they exist in one file only. However, the user can specify
the following qualifiers for clarity:
T2.DESCRIPTION, T1.PRICE, T1.SUPPNO
The following examples of joining several eServer i5 or iSeries files describe more
sophisticated techniques. You should now be familiar with the basics of how to
join two files. For a more detailed explanation, refer to the following sections.
To transfer field missing records, use Return Record at Missing Field Value.
When Return Record at Missing Field Value has been specified, the default
eServer i5 or iSeries values are transferred instead of the missing field values. The
default values for character fields are blanks, while those for numeric fields are
zeros. For example, if the INVENTORY file does not contain the part number 221
record, the result of the previous example will be as follows:
Field: PARTNO DESCRIPTION PRICE
------ ----------- -----
Record 1: 221 .30
2: 231 NUT .10
If Return Record at Missing Field Value has not been specified, the field missing
records are not transferred. For example, if the INVENTORY file does not contain
the part number 221 record, the result of the previous example will be as follows:
For example, the SUPPLIERS file shows that several suppliers provide the same
part. The user might want to know which supplier sets a price that is double, or
greater than double, that of another. To transfer the necessary information to a
workstation, specify:
The same file has been specified in FROM twice. JOIN BY specifies that records
having the same part number are joined. This creates a joined record containing
information about two suppliers of a single part. The user can spot those records
for which the price is double, or greater than double, that of another supplier.
Records in the SUPPLIERS file are compared, one by one, with all the records
(including itself) in the SUPPLIERS file. When the same part number is found, the
two corresponding records are linked. This processing is performed for each record
in the SUPPLIERS file.
For each record, the first supplier’s price is compared with the second supplier’s
price. When the first supplier’s price is double, or greater than double, that of the
second, only the record containing the first supplier price is kept.
Note that the conditions specified in WHERE are checked first, then the records
that satisfy those conditions are included in the group.
The following example transfers the highest and lowest prices for each part.
However, the summary records to be transferred are only those for which the
highest price exceeds 10.00.
The following table shows the result of removing unnecessary summary records by
using HAVING
Field: PARTNO MAX(PRICE) MIN(PRICE)
------ ---------- ----------
Record 1: 209 19.50 18.00
2: 285 21.00 21.00
3: 207 29.00 29.00
One summary record for an entire file can be transferred. To do this, specify only
the summary function in SELECT and nothing in GROUP BY. As a result, an
entire file can be recognized as one group, while one summary record can be
transferred for the group.
You can concurrently use the concept of summarizing groups and that of joining
records from several files. To obtain the desired results, do as follows:
1. Specify a file in FROM, and specify the join conditions to join the records in
JOIN BY.
2. Specify the conditions in WHERE to remove unnecessary records.
3. Specify the fields used for grouping the remaining records in GROUP BY.
4. Specify the function in SELECT, then create summary records.
5. Specify the conditions in HAVING to remove unnecessary records.
File
Transfer request files can be processed.
Create Creates a transfer request file
Open Displays the contents of an existing transfer request file
Save, Save As
Save the current settings to the transfer request file being used or to a new
transfer request file, respectively
Exit Terminates the operation started by selecting the Data Transfer icon
Sort Sequence
Specifies which sort sequence should be used for this transfer request.
iSeries job default
Sort by the table identified on the eServer i5 or iSeries system as the job
sort table.
Hexadecimal
Sort by the internal hexadecimal representation.
User specified table
Sort by the table identified by the user in a subsequent prompt.
Shared Weight Table
Sort by the shared weight table associated with the language named in a
subsequent prompt.
Unique Weight Table
Sort by the shared unique table associated with the language named in a
subsequent prompt.
Changing the sort sequence affects the order in which records appear only if the
ORDER BY clause is being used. The sort sequence affects all character
comparisons that depend on the order of the alphabet. Such comparisons can occur
in the WHERE clause, the GROUP BY clause, the HAVING clause, the JOIN BY
clause, the IN predicate, the LIKE predicate, the BETWEEN predicate, the MAX
function, and the MIN function. Comparison operations are =, <>, >, >=, and >=.
Language
eServer i5 and iSeries standard tables provide many languages. Select the
user-specified languages to enter the desired language ID. Language IDs shipped
with eServer i5 and iSeries are found in AS/400 NLS Guide.
Language ID
Enter the language ID for the desired language
eServer i5 and iSeries standard tables provide many languages. Language IDs
shipped with eServer i5 and iSeries are found in AS/400 NLS Guide.
For bidirectional sessions, the Host and PC default code pages are dependent on
the Windows system locale. For Hebrew Windows, the host code page is 424 and
the PC code page is 1255. For Arabic Windows, the host code page is 420 and the
PC code page is 1256. You can change the values by updating the translation table.
File-Description Files
A file-description file is a workstation file that contains all field descriptions of the
data in the corresponding workstation data file. Each field descriptor contains the
field name, data type, and field length. There is one field descriptor for each field
in the workstation file.
The workstation files require field definitions when the files are transferred. The
field definitions describe the file as it exists on the workstation. These definitions
contain data that is similar to the field definitions (DDS) required by eServer i5 or
iSeries system files. The data must be defined for both the eServer i5 or iSeries
system and the workstation files, because the field names from each file are needed
to send the data to the eServer i5 or iSeries system and the data in each file might
be in different formats.
A file-description file is created on request during the transfer process of data from
an eServer i5 or iSeries file to a workstation file. Therefore, you usually do not
need to worry about the contents or the format of the file-description file.
However, if you transfer data that has not been previously transferred to the
system, you must create a file-description file.
Items within brackets are optional. Use either uppercase or lowercase characters
anywhere in the file.
PCFT Entries: PCFT is a keyword that identifies this record as containing the file
type indicator. It is followed by an indicator identifying the type of file in which
the data is stored. It must appear only once, and must start in column 1, after the
PCFDF record and before any PCFL records. An optional comment can follow this
file-type indicator if separated from the indicator by at least one space.
PCFO Entry: The PCFO entry is optional. PCFO is a keyword that identifies this
record as containing information about the date and time formats, time stamp, and
separator characters for applicable formats. It must appear only once and must
PCFL Entries: PCFL identifies a definition for a field. Enter a PCFL entry in the
file-description file for each field in the data file. The PCFL records must be in the
same order as the fields they define in the data file.
Define as many as 256 PCFL records in the file-description file and start PCFL
records in column 1. If you enter more than 256 PCFL records, you receive an error
message. You cannot continue a record on one line, and only the first 80 characters
of a record are used.
Table 27 shows the valid single-byte character set (SBCS) data types for each file.
Table 27. Valid SBCS Data Types for File Types
File Type Valid Data Type
ASCII text ASCII
ASCII
numeric
DOS random ASCII
Binary
Hexadecimal
ASCII Packed Zoned
BASIC sequential ASCII ASCII numeric
BASIC random ASCII BASIC double-precision floating
point BASIC integer BASIC single-precision
floating point Hexadecimal
DIF ASCII ASCII numeric
For numeric fields in BASIC sequential and DIF files, a size specification must be
present. However, because the data in these fields is of variable length, the data
transfer function assumes a maximum length of 65 characters. This length more
than covers the largest possible exponential ASCII numeric value. The size
specifications for character fields must be the maximum size of any data item in
that field.
Table 28 shows the allowed data length limits for each workstation data type.
These are the maximum lengths you can specify for size in the PCFL entry.
Table 28. Allowable Data Length Limits for Personal Computer SBCS Data Types
Personal Computer Data Type Data Length Limit (in Bytes)
ASCII 4093
ASCII numeric 33 (65 for DIF and BASIC
sequential)
BASIC double-precision 8 (only allowed length)
BASIC integer 2 (only allowed length)
BASIC single-precision 4 (only allowed length)
Binary 4
EBCDIC 4093
Hexadecimal 2048
Packed decimal (ASCII and EBCDIC) 16
Zoned decimal (ASCII and EBCDIC) 31
Time v 8
HMS 1
v 8
USA
ISO, EUR, and JIS 1 v 8
DDS, DFT 2
v 8 or 10
Date v 8
MDY, DMY, YMD
v 6 (only allowed length)
Julian
ISO, EUR, JIS, USA (see note 1) v 10
DDS, DFT 2
v 6, 8, or 10
Time stamp v 26
Table 29 shows the allowed data length limits for each eServer i5 or iSeries data
type.
Table 29. Allowable Data Length Limits for eServer i5 or iSeries Data Types
1
eServer i5 or iSeries Data Type Data Length Limit in Bytes
Binary 2 or 4 (only allowed lengths)
EBCDIC 4096
Hexadecimal 2048
Packed decimal (EBCDIC) 16
Zoned decimal (EBCDIC) 31
Time
HMS 8
USA 8
ISO, EUR, and JIS 8
2
DDS, DFT 8 or 10
Date
MDY, DMY, YMD 8
Julian 6 (only allowed length)
ISO, EUR, JIS, USA 10
2
DDS, DFT 6, 8, or 10
Time stamp 26
Notes:
1 The data length limits for the workstation and the system data fields are different
in some cases. For these cases, the transfer function attempts to fit the workstation
data into the system field. If the data does not fit into the field, a message is
displayed. Refer to “Data Conversions” on page 145 for more details.
2 The length is determined by the format defined in the host file for DDS, or from
the eServer i5 or iSeries job default (DFT keyword).
If there is a decimal position associated with the data in that field, place a forward
slash (/) and then the number of decimal positions after the length specification.
There are no spaces between the length, slash, and decimal position specifications.
Data Conversions
The data transfer function needs data conversions for transferring data from the
system to the workstation, and vice versa. For both types of transfers, the
necessary conversion depends on the record size, the type of data being
transferred, the type of workstation file being used, the system data type, and, in
some cases, the data length.
Record Size
Each transferred record contains data indicating whether each field contains a null
value. There is a restriction on the maximum data record that can be sent or
received from the eServer i5 or iSeries system because of this data.
The following formula determines the maximum record length that can be
transferred:
Data Types
The data transfer function supports the following system data types:
v Date
v Time
v Time stamp
v Binary data
v Character data
v Hexadecimal data
v Packed decimal data
v Zoned decimal data
The data transfer function supports the following workstation data types:
v BASIC numeric data, including:
– Double-precision data
– Integer data
– Single-precision data
v Binary data
v Character data, including:
– ASCII
– EBCDIC
v Hexadecimal data
v Packed decimal data
v Zoned decimal data
v ASCII numeric data
A date is a three-part value (year, month, and day) designating a point in time on
the calendar. The range of the year is 0001 to 9999. The range of the year for a
non-SAA format is 1940 to 9999. The range of the month is 1 to 12. The range of
the day is 1 to x, where x depends on the month.
A time is a three-part value (hour, minute, and second) designating a time of day
under a 24-hour clock. The range of the hour is 0 to 24 and the range of the other
values is 0 to 59.
A time stamp is a seven-part value (year, month, day, hour, minute, second, and
microsecond) that designates a date and time including the specified microseconds.
The maximum length of the time stamp is a character string of 26.
Dates, times, and time stamps can be assigned to result fields. A valid
character-string representation of a date can be compared with a date field, or a
valid character-string representation of a time can be compared with a time field.
Integer Data: Integer data is defined only for the workstation. BASIC applications
use integer data. Integer data is stored in 2 bytes and represents a whole number
from −32768 to 32767.
Binary Data
This data represents signed or unsigned numbers in twos complement form.
Binary numbers of 1, 2, 3, or 4 bytes in length are allowed on the workstation, but
the eServer i5 or iSeries system allows only numbers 2 or 4 bytes in length. The bit
on the left side of the high-order bit determines the sign of the number (0 for
positive, 1 for negative). The system stores the data with the high-order byte on
the left side of the field, whereas the workstation stores the data with the
high-order byte in the right-hand position of the field.
The decimal position, if specified by the file description, represents the number of
decimal digits to the right of the decimal point. The file description specifies the
presence of a decimal position.
For example, the binary number 3BF5 is equivalent to the decimal number 15349,
and the binary number FFB4 is equivalent to the decimal number −76.
The tables used to translate characters from ASCII to EBCDIC and from EBCDIC to
ASCII contain the following kinds of values:
v Values where the workstation ASCII characters and eServer i5 or iSeries EBCDIC
characters match exactly
v Values where a substitute character is chosen for a character that cannot be
translated
The data transfer function uses tables to translate data from ASCII to EBCDIC and
EBCDIC to ASCII. You can change these default tables using the translation table
utility (TRTABLE).
Note: ASCII (SBCS) data includes date, time, and time stamp types if converted.
EBCDIC data includes date, time, and time stamp if not converted.
Hexadecimal Data
You can think of this data as a string of bits representing base 16 numbers. For
example, you can represent hex 3D with the following string of bits:
0011 1101
For the eServer i5 or iSeries system, a value of hex B or hex D in this half-byte
represents a negative number.
For DOS random files, only the last half-byte (the half-byte that contains the sign)
is changed. For the sign half-byte, the workstation uses hex 3 to indicate a positive
number or hex B to indicate a negative number.
For DOS random type-2 files, the last half-byte (the half-byte that contains the
sign) is not changed. The sign convention used on the workstation and on the host
system is the same.
The decimal position, if specified, represents the number of decimal digits to the
right of the decimal point. The presence of a decimal position is specified in the
file description.
The size of each digit is determined by its half-byte on the right side. Valid values
for the half-bytes are decimal 0 through 9.
The sign in both the eServer i5 or iSeries system and workstation zoned decimal
fields is specified by the hexadecimal value in the left half-byte of the right byte of
the field. For the eServer i5 or iSeries system, a hex B or hex D in this half-byte
represents a negative number (for example, X'F6D2' represents −62).
For DOS random files, zoned decimal fields from the system change from EBCDIC
to ASCII, as do character fields, except that the sign half-byte in the workstation
field is changed to a hex 3 to indicate a positive number or a hex B to indicate a
negative number.
For DOS random type-2 files, zoned decimal fields from the system change from
EBCDIC to ASCII, as do character fields, except that the sign half-byte in the
workstation field is changed to a hex 3 to indicate a positive number or a hex 7 to
indicate a negative number.
The decimal position, if specified, represents the number of decimal digits to the
right of the decimal point and is specified by the file description.
The decimal point and sign are stored explicitly for ASCII numeric data. The
character on the left displays the sign (space or plus (+) for positive, minus (−) for
negative). Leading zeros to the left of the decimal point change to spaces. The
decimal point, if any, is added in the correct position.
BASIC sequential and DIF file types also support another form of ASCII numeric
data called exponential numbers.
For example, the number −1.0E+03 (representing −1.0 x 103 in ASCII numeric
format) is:
2D 31 2E 30 45 2B 30 33
For example, the number 9.5D−15 (representing 9.5 x 10-15 in ASCII numeric
format) is:
39 2E 35 44 2D 31 35
Transferring Data to ASCII Text Files: When you create an ASCII text file, the
data coming from the eServer i5 or iSeries system changes as follows:
v Hexadecimal fields change to equivalent ASCII characters for each half-byte. For
example, X'D3' expands to ASCII 4433 and is written to the file. When displayed
by an editor or printed, the string appears as D3.
v EBCDIC character fields change byte by byte and are mapped into ASCII
characters as defined by the translation tables.
v Date, time, and time-stamp data is mapped into ASCII characters as defined by
the translation tables.
Note: Some nondisplayable EBCDIC characters are translated into ASCII control
characters on the workstation. If EBCDIC character fields contain
nondisplayable data, you might get unexpected results and your ASCII
text file might appear to be corrupted.
One possible solution to this problem is to define these fields on the host
system as hexadecimal fields instead of character fields.
v Binary fields change to ASCII numeric. For example, X'FFD3' with no decimal
position expands to ASCII 20202020202020202D3435. When displayed by an
editor or printed, the string appears as −45.
Note: The length of the ASCII field depends on the length of the binary field.
A binary field on the eServer i5 or iSeries system is either 2 or 4 bytes long. The
resulting ASCII field length is from 6 to 11 bytes, including the sign. Another
byte is added for a decimal point.
Table 30 shows the mapping between binary field lengths and their ASCII
lengths.
Table 30. Binary-to-ASCII Field Length Mapping
Binary Length ASCII Length Value Range
2 6 −32768 to 32767
4 11 −2147483648 to 2147483647
v Zoned decimal fields are changed to ASCII numeric. For example, EBCDIC
F0F0F9F5F2D6 with a field length that indicates two digits to the right of the
decimal point expands to ASCII 20202D39352E3236. When displayed by an
editor or printed, the string appears as −95.26. The resulting workstation field
length is equal to the length of the system field plus 1 for the sign and 1 for the
decimal point, if specified.
v Packed decimal fields change to ASCII numeric. For example, X'871D' (no
decimal point) changes to ASCII 2D383731. When displayed by an editor or
printed, the string appears as −871.
Since two decimal digits are packed into 1 byte, the length of the resulting
workstation field is equal to two times the length of the eServer i5 or iSeries
field, plus 1 for the decimal point (if specified). This length always includes the
sign. A minus sign (−) indicates negative, and a space indicates positive.
Transferring Data from ASCII Text Files: When you transfer data from ASCII
text files to system files, the data changes as follows:
v ASCII character data changes to EBCDIC character, date, time, or time-stamp
data (based on the eServer i5 or iSeries field type) on a byte-to-byte basis, or to
hexadecimal data by changing 2 ASCII bytes into 1 hexadecimal byte.
v ASCII numeric data changes to eServer i5 or iSeries binary, zoned decimal, or
packed decimal data, depending on the specified data type.
Errors When Transferring Data from ASCII Text Files: When you transfer data
from a workstation ASCII text file to an eServer i5 or iSeries file, the following
errors can occur:
v A data field in the ASCII text file is too long for a field in the eServer i5 or
iSeries-defined file. In this case, the data is truncated. This occurs when the
description file defines the character data as longer than the field length
specified for the system file.
If the data transfers to an EBCDIC field, this error occurs only if the extra bytes
are not spaces.
If the data transfers to a hexadecimal field, this error occurs only if the extra
bytes are not zeros. These extra bytes are truncated so the data fits into the
specified field.
v The value of numeric data is too large for the system field. The maximum value
is used. This error occurs when:
– Numeric data in the field does not fit into the specified number of bytes for
the field.
– The decimal value of a numeric field contains more digits than were specified
for the field.
The value of the field is set to the maximum value possible for the number of
bytes and digits specified by the eServer i5 or iSeries system.
v Data in this field has too many decimal positions. The number is rounded. This
error occurs when the number of decimal positions in the field is greater than
the number of decimal positions specified on the eServer i5 or iSeries system.
These extra bytes are significant because the data rounds up if the first
extraneous digit is 5 or greater, and rounds down if it is less than 5.
v Data in this field is incorrect or does not match the data type. This error occurs
when:
– Nonnumeric data is found in a field that the file descriptions defined as
numeric. The transfer request ends to prevent transferring incorrect data to
the file.
– ASCII numeric data is found that does not match the format the file
description specified. An incorrectly positioned decimal point within the field
could cause this error.
– A value other than X'30' through X'39', minus, plus, or decimal point is found.
A duplicated decimal point or minus is found. The transfer request ends to
prevent transferring incorrect data to the file.
v Data for this field is missing. The default values are used. This error occurs
when a data field is defined, but the data is not in the file. This means that the
end of the record is reached before all of the defined data is found.
The field or fields for which data has been defined but not found then fill with
default values and transfer to the file. The default values are EBCDIC spaces for
character fields, or zeros for numeric and hexadecimal fields.
When you transfer data from an ASCII text file to an eServer i5 or iSeries file
without using a file-description file, any extra data found past the record length
specified for the file is not transferred.
Transferring Data to BASIC Random Files: When you create a BASIC random
file, system data changes as follows:
v Hexadecimal fields do not change.
v Change from a system binary field depends on the field length:
– Fields of 2 bytes, with no decimal positions to the right of the decimal point,
change to 2-byte BASIC integer values. The only change is that the order of
the bytes reverses.
– Fields of 2 bytes, with decimal positions to the right of the decimal point,
change to BASIC single-precision numbers.
– Fields of 4 bytes change to BASIC double-precision numbers.
v EBCDIC character, date, time, and time-stamp fields change byte by byte and are
mapped into ASCII characters as defined by the translation tables.
v Variable-length and null fields are converted to fixed lengths, and trailing blanks
(for character, hexadecimal, date, time, and time-stamp data) or zeros (for binary,
zoned, and packed data) are added to the maximum length of the field.
v Zoned decimal fields change into one of the following BASIC variables
depending on the field length and the number of decimal positions:
– Zoned decimal fields of 4 bytes or less with no positions to the right of the
decimal point change to a BASIC integer of an equivalent value.
A zoned decimal field of 4 bytes or less, but with a decimal point, falls into
the following category.
– Zoned decimal fields up to 7 bytes (including those that did not fall into the
previous category) change to a BASIC single-precision number of an
equivalent value.
– Zoned decimal fields greater than 7 bytes change to a BASIC double-precision
number of an equivalent value.
v Packed decimal fields change into one of the following BASIC variables
depending on the length of the field:
– Packed decimal fields of 2 bytes or less with no positions to the right of the
decimal point change to a BASIC integer of an equivalent value.
A packed decimal field of 2 bytes or less, but with a decimal point, falls into
the following category (up to 4 bytes).
– Packed decimal fields of up to 4 bytes (including those that did not fall into
the previous category) change to a BASIC single-precision number of an
equivalent value.
Note: Changes between binary, packed decimal, and zoned decimal numbers
with decimal points are not equivalent to their BASIC number
counterparts, because BASIC uses a binary number format that does not
always change into exact decimal fractions.
Transferring Data from BASIC Random Files: When you transfer data from
BASIC random files to system files, the data changes as follows:
v Hexadecimal fields transfer to the system file as unchanged hexadecimal data.
The field lengths as stored on the workstation should be the same as the field
lengths as stored on the system.
v ASCII character, date, time, and time-stamp data changes to EBCDIC character
data byte by byte.
v For null-capable eServer i5 or iSeries fields, null values (except date, time, and
time stamp) cannot be reliably detected and are not uploaded. For
variable-length eServer i5 or iSeries fields, trailing blanks are removed and the
field is converted to the variable-length format.
v Numeric fields from BASIC random files (BASIC integers, single-precision
floating-point numbers, and double-precision floating-point numbers) change to
system binary data, zoned decimal data in EBCDIC format, or packed decimal
data in EBCDIC format.
Note: Because the change of floating-point numbers into decimal fractions is not
always exact, each number automatically changes into the most precise
number possible with respect to the system field length. If you want more
precision, specify a larger system field size.
Errors When Transferring Data from BASIC Random Files: When you transfer
data from a workstation BASIC random file to a system file, the following errors
can occur:
v Data in this field is too short for the system field. The data is padded. This error
occurs when the file contains character or hexadecimal data shorter than the
field length specified on the system. This error can occur if the workstation field
is defined as shorter than the system, or if the data in the last record of the file
is too short. Character fields are padded on the right with EBCDIC spaces, and
hexadecimal fields are padded with zeros.
v Data in this field is too long for the system field. The data is truncated. This
error occurs when the workstation file-description file defines character or
hexadecimal data as longer than the field length specified on the system.
For character data, this error occurs only if the extra bytes are not spaces. For
hexadecimal data, this error occurs only if the extra bytes are not zeros. These
extra bytes are then truncated so that the data fits into the specified eServer i5 or
iSeries field.
v The value of numeric data is too large for the system field. The maximum
number is used. This error occurs when:
– Numeric data in the workstation field does not fit into the specified number
of bytes for the system field.
– The decimal value of a numeric field contains more digits than are specified
for the system field.
When you transfer data from a BASIC random file to an eServer i5 or iSeries file,
any data shorter than the record length defined for the system file is padded with
EBCDIC spaces.
Because there are no record delimiters in BASIC random files, this error can occur
only on the last record of the file. This probably indicates that the record length of
the system file does not match the record length of the workstation file.
Transferring Data to BASIC Sequential Files: The following list describes how
eServer i5 or iSeries data created by a BASIC-sequential-file-defined data definition
changes:
v Hexadecimal fields change to equivalent ASCII characters for each half-byte.
Double quotation marks surround them.
For example, X'F3' expands to ASCII 22443322 and is written to the file.
v EBCDIC character, date, time, and time-stamp fields change byte by byte and are
mapped into ASCII characters as defined by the translation tables. ASCII double
quotation marks are added before and after the character string.
v Null fields are represented by the absence of the field (comma comma, or by a
single comma if the null field is the last field of the record).
Transferring Data from BASIC Sequential Files: When you transfer data from
BASIC sequential files to eServer i5 or iSeries files, the data changes as follows:
v ASCII character, date, time, and time-stamp data changes to EBCDIC character
data on a byte by byte basis and to hexadecimal by changing 2 ASCII bytes into
1 hexadecimal byte.
v ASCII numeric data translates to system binary, zoned decimal, or packed
decimal data, depending on the specified data type. The lengths of the system
data and the workstation data might be different because the minus signs and
decimal points are stored in ASCII numeric fields, and leading and trailing
spaces are stripped away.
BASIC might create exponential numbers in these files. The data transfer
function also changes these numbers.
Each translated field is individually verified to ensure that the resulting field
length matches the specifications for that field. The data transfer function tries to
fit the workstation data into the system field.
Errors When Transferring Data from BASIC Sequential Files: When you transfer
data from a BASIC sequential file to a eServer i5 or iSeries-defined file, the
following errors can occur:
v Data in this field is too long for the eServer i5 or iSeries field. The data is
truncated. The file-description file defines character data as longer than the field
length specified for the file.
If the data transfers to an EBCDIC field, this error occurs only if the extra bytes
are not spaces. If the data transfers to a hexadecimal field, this error occurs only
if the extra bytes are not zeros. These extra bytes are truncated so that the data
fits into the specified eServer i5 or iSeries field.
v The value of numeric data is too large for the system field. The maximum value
is used. This error occurs when:
– Numeric data in the workstation field does not fit into the specified number
of bytes for the system field.
– The decimal value of a numeric field contains more digits than were specified
for the system field.
The value of the field is set to the maximum value possible for the number of
bytes and digits specified by the eServer i5 or iSeries system.
DIF is used for data interchange between spreadsheet programs and other
application programs.
The data transfer function supports only the following two data types within DIF
files:
v Character data: The data in a character cell (think of a cell as one field in one
record) must be enclosed in double quotation marks if there is an embedded
space in the string. However, if the string begins with a quotation mark, it must
also end with a quotation mark.
v Numeric data: The numeric data supported by the data transfer function
consists of a decimal number that can contain a minus sign or a decimal point or
both. The data transfer function also supports exponential numeric data.
Transferring Data to DIF Files: When creating a DIF file, system data changes as
follows:
v Hexadecimal fields change to equivalent ASCII characters for each half-byte.
Double quotation marks surround them.
Transferring Data from DIF Files: If an error cell is found when data is
transferred from a DIF file to the eServer i5 or iSeries system, one of the following
things can occur, depending on the type of data in the file:
v If the system field is a character (EBCDIC) field, it is filled with untranslatable
characters (hexadecimal zeros) and is transferred to the system. A message
appears, telling you how many bytes of untranslatable data have transferred.
v If the system field is a hexadecimal, zoned, packed, or binary field, you receive
an error message telling you that the data in this cell is incorrect, and that the
data was not transferred to the system.
When you transfer data from a system file to a DIF file, the field names are placed
in the first record and you can consider them column headings. When you transfer
DIF files back to the system, the first row must either be these field names (exactly
as they are defined on the system) or data. If the first row does not consist of field
names, the file is processed as if it contains only data.
No DIF header information is used when sending the file to the eServer i5 or
iSeries system. To correctly transfer a DIF file to the system, ensure that the file is
in the correct format (row and column). It is essential that the field names, if
present, make up the first row of data. The subsequent records make up the
remaining rows of data. Therefore, when you transfer the data to the eServer i5 or
iSeries system, the file must be saved in the same format as originally created by
the data transfer function.
When you transfer data from DIF files to eServer i5 or iSeries files, the data
changes as follows:
v ASCII character, date, time, and time-stamp data is changed to EBCDIC
character data or to hexadecimal data. ASCII-to-EBCDIC conversion is done byte
by byte. ASCII-to-hexadecimal conversion is done by changing two ASCII bytes
to one hexadecimal byte.
v ASCII numeric data changes to system binary, zoned decimal, or packed decimal
data, depending on the data type the system specifies.
The lengths of the fields on the system and the workstation can be different,
because of the explicit way minus signs and decimal points are stored in ASCII
numeric fields. This means that each field changes individually, to ensure that
Errors When Transferring Data from DIF Files: When you transfer data from a
workstation DIF file to a system file with data definitions, the following errors can
occur:
v Data in this workstation file is not valid, or the version of this workstation file is
not supported. The DIF file does not follow the standard DIF format. Processing
ends, and no more records are transferred.
v Data in this field is too long for the eServer i5 or iSeries field. The data is
truncated. The workstation file-description file defines character or numeric data
as longer than the field length specified for the system file.
For character data, this error occurs only if the extra bytes are not spaces. For
hexadecimal data, this error occurs only if the extra bytes are not zeros. The
extra bytes are truncated so that the data fits into the specified eServer i5 or
iSeries field.
v The value of numeric data is too large for the system field. The maximum value
is used. This error occurs when:
– Numeric data in the workstation field does not fit into the specified number
of bytes for the eServer i5 or iSeries field.
– The decimal value of a numeric field contains more digits than are specified
for the system field.
The value of the field is set to the maximum value possible for the number of
bytes and digits the system specifies.
v Data in this field has too many decimal positions. The number is rounded. The
number of decimal positions in the workstation field is greater than the number
of decimal positions specified on the system. The data is rounded up if the first
extraneous digit is 5 or greater, and is rounded down if it is less than 5.
v Data in this field is incorrect or does not match the workstation data type. One
of the following things has occurred:
– A numeric field contains nonnumeric data.
– A character or hexadecimal field contains a numeric field or a numeric
(zoned, packed, or binary) field contains a character field.
– An eServer i5 or iSeries hexadecimal or numeric (zoned, packed, or binary)
field contains a DIF error cell.
When this error occurs, the transfer request ends to prevent the transfer of
incorrect data to the system file.
v Data for this field is missing. This occurs when a data field is defined, but the
data is not in the file. This means that the end of the record is reached before all
of the defined data is found. If the host field is null-capable then a null is
inserted; otherwise, the default values are used.
When this error occurs, the field or fields for which data is defined, but not
found, are filled with default values and are transferred to the system file. These
default values are EBCDIC spaces for character fields, or zeros for numeric
fields.
To supply your own default values, use the Default (DFT) keyword in the DDS
for the file.
BIFF Files
The BIFF file format is used by Microsoft Excel. In a BIFF file, data is expressed in
lines and columns. A BIFF file contains character and numeric data (both positive
and negative decimal values).
BIFF format versions 4 and 8 are supported for 5250 Data Transfer. Both BIFF4 and
BIFF8 support 256 columns, which is the maximum for a Microsoft Excel
worksheet. Documentation on both formats is freely available from the Microsoft
Web site.
BIFF4 handles data for Microsoft Excel V2, V3, and V4. The format supports a
maximum of 16 384 rows.
The transfer facility supports only the following two data types for a BIFF file:
v Character data
v Numeric data
Transferring Data to BIFF Files: When a BIFF file is created, the system data is
converted to equivalent Excel cell data.
Transferring Data from BIFF Files: If an error cell is found during data transfer
from a BIFF file to the eServer i5 or iSeries system, either of the following things
can occur depending on the data type of the file:
v If the system field is a character (EBCDIC) field, the error cell containing
untranslatable characters (hexadecimal zeros) is transferred to the system. A
message indicating how many bytes of untranslatable data were transferred is
displayed.
v If the system field is a hexadecimal, zoned decimal, packed decimal, or binary
field, an error message indicating that the data in this cell is not valid and thus
has not been transferred to the system is displayed.
When you transfer data from a system file to a BIFF file, the first record contains
field names, which can be treated as column headers.
To return a BIFF file to the system, the first line must contain these field names (as
defined in the system) or data. If the first line does not contain field names, the file
is regarded as containing data only.
When you transfer data from a BIFF file to an eServer i5 or iSeries file, the data is
converted as follows:
v ASCII character cell data is converted to EBCDIC character data or hexadecimal
data; 1-byte ASCII data is converted to 1-byte EBCDIC data.
v ASCII numeric cell data is converted to a binary number, or a zoned or packed
decimal number, depending on the data type specified in the system.
When you transfer data from a BIFF file to the eServer i5 or iSeries system, the
following specific processing is performed:
v When you transfer data to a BIFF file, the first record contains the names of the
fields to be transferred, which can be treated as column headers. To return a
BIFF file to the eServer i5 or iSeriessystem, the first line must contain the same
field names (as defined in the eServer i5 or iSeries system) or data. If the first
line or the first set does not contain a character field that exactly matches the
eServer i5 or iSeries field, the file is treated as being a file with no column
headers, and only data is processed.
v When you transfer a BIFF file to the eServer i5 or iSeries system, header
information is not used.
v To ensure correct transfer of a BIFF file to the eServer i5 or iSeries system, the
file format must be valid (lines and columns). Data for each set or line must
correspond to one record in the eServer i5 or iSeries file.
Errors When Transferring Data from BIFF Files: When you transfer data from a
BIFF file on a workstation to the system file with the data definition, the following
errors can occur:
v Data in this workstation file is not valid, or the version of this workstation file is
not supported. The BIFF file does not conform to the standard BIFF format.
Processing terminates, and no more records are transferred.
v Data in this field is too long for the corresponding eServer i5 or iSeries field. The
data is truncated. A file-description file defines character or numeric data that is
longer than the field specified in the system file.
– For conversion from ASCII to EBCDIC, this error occurs if a file-description
file defines ASCII data that is longer than the field specified in eServer i5 or
iSeries system.
During conversion from ASCII to hexadecimal, this error will occur if a
file-description file defines ASCII data that is twice as long as the field
specified in eServer i5 or iSeries system. This is because 2-byte ASCII data is
converted to one hexadecimal character.
– A truncation error only occurs if excess bytes are other than blanks (X'20')
during conversion from ASCII to EBCDIC, or other than zeros (X'30') during
conversion from ASCII to hexadecimal. Truncating these excess bytes enables
data to fit into the specified eServer i5 or iSeries fields.
v Numeric data is too long to fit into the corresponding eServer i5 or iSeries field.
The maximum value is assumed. This error occurs under either of the following
conditions:
– Numeric data in a workstation field is too long to fit into the number of bytes
specified for the eServer i5 or iSeries field.
Note: DOS random and DOS random type-2 files are identical, except for the way
in which the signs are represented for packed decimal and zoned decimal
numbers.
Transferring Data to DOS Random Files: When creating DOS random file data
definitions, system data changes as follows:
Transferring Data from DOS Random Files: When you transfer data from DOS
random files to eServer i5 or iSeries files, the data changes as follows:
v ASCII character, date, time, and time-stamp data changes to EBCDIC character
data on a byte by byte basis.
v Binary fields in the workstation file are stored in an order reversed from what
the system file expects. These bytes reverse and transfer to the system file.
v Hexadecimal fields do not change. The field length on the system should be the
same as the field length on the workstation.
v For packed decimal fields, only the last half-byte (the byte that contains the sign)
is changed. The host system uses X'F' to indicate a positive number and X'D' to
indicate a negative number for the sign half-byte.
For example, X'08654313' appears as X'0865431F'.
v Zoned decimal fields on the workstation change from ASCII to EBCDIC (ASCII
to EBCDIC for DBCS), as do character fields. The last half-byte (the half-byte
that contains the sign) in the workstation field is changed to X'F' to indicate a
positive number and X'D' to indicate a negative number.
For example, ASCII X'3031323532B6' appears as EBCDIC X'F0F1F2F5F2D6'.
v For null-capable eServer i5 or iSeries fields, null values (except date, time, and
time stamp) cannot be reliably detected and are not uploaded. For
variable-length eServer i5 or iSeries fields, trailing blanks are removed, and the
field is converted to the variable-length format.
Errors When Transferring Data from DOS Random Files: When you transfer
data from a DOS random file to an eServer i5 or iSeries file, the following errors
can occur:
v Data in this field is too short for the system field. The data is padded. This error
occurs when the workstation file contains character or hexadecimal data shorter
than the specified field length. It also occurs if the length of the workstation
field is defined as less than the system field, or if the data in the last record of
When you transfer data from a DOS random file to a system file without data
definitions, any data shorter than the record length defined for the system file is
padded with EBCDIC spaces.
Because DOS random files have no record delimiters, this error occurs only on the
last record and probably indicates that the record length of the system file does not
match that of the workstation file.
Note: This workstation file type is identical to the DOS random file type, except
that the internal sign representation for packed decimal and zoned decimal
data types follow Systems Application Architecture (SAA) standards. Some
workstation applications, such as applications written in IBM COBOL/2™
Transferring Data to DOS Random Type-2 Files: When you create DOS random
type-2 file data definitions, system data changes as follows:
v Binary fields on the eServer i5 or iSeries system and the workstation are
represented as two complement numbers, so it is unnecessary to change
individual bytes. The workstation uses the convention of storing numeric values
with the least significant byte in the left-hand byte position. The data transfer
function then reverses the order of the bytes in binary fields.
For example, X'CEF3', coming from the system as a 2-byte binary number
(representing the value −12557), appears as X'F3CE'.
v EBCDIC character, date, time, and time-stamp fields change byte by byte and are
mapped into ASCII characters as defined by the translation tables.
v Variable-length and null fields are converted to fixed length, and trailing blanks
(for character, hex, date, time, and time stamp) or zeros (for binary, zoned, and
packed) are added to the maximum length of the field.
v Hexadecimal fields do not change.
v Packed decimal fields do not change. The sign convention used on the
workstation and on the host system is the same.
For example, X'0865431C' appears as X'0865431C'.
v Zoned decimal fields from the system change from EBCDIC to ASCII, as do
character fields. However, the sign half-byte is changed to a 3 to indicate a
positive number or a 7 to indicate a negative number when the data is sent to
the workstation.
For example, EBCDIC X'F0F1F2F5F2D6' appears as ASCII X'303132353276'.
Transferring Data from DOS Random Type-2 Files: When you transfer data from
DOS random type-2 files to eServer i5 or iSeries files, the data changes as follows:
v ASCII character data, date, time, and time stamp data change to EBCDIC
character data on a byte by byte basis.
v Binary fields in the workstation file are stored in an order reversed from what
the system file expects. These bytes reverse and transfer to the system file.
v Hexadecimal fields do not change. The field length on the system should be the
same as the field length on the workstation.
v For packed decimal fields, the last half-byte (the half-byte that contains the sign)
is not changed unless the sign half-byte is less than X'A' (represented by values
0 through 9). If the sign half-byte is less than X'A', it is changed to X'F' on the
host system.
For example, X'865431D' appears as X'0865431D', but X'08654318' appears as
X'0865431F'.
v Zoned decimal fields on the workstation change from ASCII to EBCDIC, as do
character fields. However, the sign half-byte is changed to an F to indicate a
positive number or a D to indicate a negative number when the data is sent to
the host system.
For example, ASCII X'303132353276' appears as EBCDIC X'F0F1F2F5F2D6'.
v For null-capable eServer i5 or iSeries fields, null values (except date, time, and
time stamp) cannot be reliably detected and are not uploaded. For
variable-length eServer i5 or iSeries fields, trailing blanks are removed and the
field is converted to the variable-length format.
When you transfer data from a DOS random type-2 file to a system file without
data definitions, any data shorter than the record length defined for the system file
is padded with EBCDIC spaces.
Because DOS random type-2 files have no record delimiters, this error occurs only
on the last record and probably indicates that the record length of the system file
does not match that of the workstation file.
No-Conversion Files
No-conversion files, defined by the data transfer function, consist of data that has
not changed. For example, when data transfers from the system to a workstation
Transferring Data to No-Conversion Files: When you transfer data from the
eServer i5 or iSeries system to a no-conversion file, the data transfers exactly as it
is stored on the system.
Variable-length and null fields are converted to fixed length, and trailing EBCDIC
blanks (for character, hex, date, time, and time stamp) or EBCDIC zeros (for binary,
zoned, and packed) are added to the maximum length of the field.
Transferring Data from No-Conversion Files: The data types that exist in a
no-conversion file are EBCDIC system data types only. When a no-conversion file
transfers to the system, the data transfer function performs no data change or
translation. Date, time, and time-stamp data transfers to EBCDIC character data on
the workstation.
However, the data transfer function verifies that all numeric data is in the correct
EBCDIC format. If any numeric data is found that is not in the correct EBCDIC
format, that data and any remaining data does not transfer.
Errors When Transferring Data from No-Conversion Files: When you transfer
data from a workstation no-conversion file to a system file, the following errors
can occur:
v Data sizes are not equal. When you transfer no-conversion files, the length and
decimal position specifications for the system and the workstation must match
exactly. If not, no records transfer.
v Data in this field is too short for system field. The data is padded. This error
occurs when the workstation file contains character or hexadecimal data shorter
than the field length specified for the system file. This could occur if the data in
the last record of the file is too short. Character fields are padded on the right
with EBCDIC spaces. Hexadecimal fields are padded with zeros.
v Data in this field is incorrect or does not match the workstation data type. The
transfer request ends to prevent transferring incorrect data to the system file.
This error occurs when a field defined by the file descriptions as numeric
contains nonnumeric data.
Note: The data is verified assuming that the data is in EBCDIC format. If you
want to transfer data in another format, do not use data definitions or file
descriptions, and specify the record lengths defined on the system and the
workstation in the same way.
v Data for this field is missing. The default values are used. This error occurs
when a data field has been defined, but the data is not in the file. This error can
occur only in the last record of the file, since no-conversion files have no explicit
record delimiters.
When this error occurs, the field or fields for which data has been defined but
not found fill with default values and transfer to the system file. These default
values are EBCDIC spaces for character fields, or zeros for numeric fields.
The iSeries-to-workstation data transfer function uses many functions within the
eServer i5 or iSeries system to determine the fastest method of selectively
retrieving records. When it selects a smaller group of records to transfer, the
iSeries-to-workstation data transfer function uses the existing access paths
whenever possible to improve performance.
When you meet these conditions, you must then match the transfer request to the
access path. The following considerations might be helpful when you define your
transfer request:
v The time it takes to select records based on WHERE clause values is less when
the following things are true of the WHERE field:
– It is compared with a constant.
– It is the first key field in an existing access path defined to the data to be
transferred.
v A transfer request containing a GROUP BY or ORDER BY clause or both can
work better if the key fields in the access path are in the same order as specified
on the GROUP BY or ORDER BY clauses.
v A transfer request containing a JOIN BY clause can work better when:
– An access path exists over the file that you are joining to.
– The field you are joining to is a primary key field in the access path.
– You are not returning records with missing fields.
Note:
PCT400 was withdrawn from marketing 3/98.
Host Requirements
For PC400 File Transfer in SBCS mode, you need one of the following host
file-transfer programs (referred to as APVAFILE):
v Personal Communications Tools/400 8mm Tape — 46H8350
v Personal Communications Tools/400 1/2 inch Tape — 85G9973
v Personal Communications Tools/400 1/4 inch Tape — 85G9969
For PC400 File Transfer in DBCS mode, you need one of the following host
file-transfer programs (referred to as APVAFILE):
v Personal Communications Tools/400 V1R1, 5799-QBX (Japan)
v Personal Communications Tools for OS/400 V1R1, 5799-FPZ (Korea, China,
Taiwan)
Using the Clipboard button: If you have copied one or more host file names
to the clipboard, you can paste the names into
the transfer list; click the Clipboard button to
open a dialog box for this. Select one or more of
the pasted file names to be transferred. Then
click OK.
4. Enter or modify the suggested name under which the file will be stored on the
workstation, and enter or select the Transfer Type; or click the Browse button
to open a dialog box for selecting a location for the file.
Using List Files: Select Open List, and select the list to be used for transfer.
(See “Creating List Files” for an explanation of how to create
list files.)
A list file can be used for both Send and Receive. The default list file extension is
.SRL.
Note: You can also click the Browse button (for sending files) or the Clipboard
button (for receiving files) to open the corresponding dialog box, which
allows you to select files for transferring; when you click OK, the
selected files are shown in the Transfer List.
3. Click the Add to List button to include a selected file in the Transfer List.
4. After all desired files have been selected, click Save List.
The Save File-Transfer List File As window opens.
5. Enter or select a list name, and click OK.
Editing Lists
To edit the contents of a previously created list:
1. As explained in “Sending Files to the Host System” on page 169 and
“Receiving Files from the Host System” on page 170, display the Send File to
Host or Receive File from Host window.
2. Select Open List.
The Open File-Transfer List File window opens.
3. Select the name corresponding to the list file to be edited, then click OK.
4. The contents of the selected list appear in the Send File to Host or Receive File
from Host window.
5. Edit the contents of the list file.
Changing the contents of a list: Choose the file to be changed from the list,
and overwrite the items to be changed in the
text box; then click the Update in List button.
Removing a file from the list: Choose the file to be removed, and click
Remove from List.
Adding a file to the list: Double-click the file to be added from the list of host
or workstation files.
6. Select Save List.
The Save File-Transfer List File As window opens.
7. Enter a name and then click OK.
Managing Templates
A template is a set of rules to be used by the workstation to automatically generate
a workstation or host file name and transfer type when you specify a file to be
sent or received.
You can have up to 32 templates. They are automatically numbered from 1 to 32.
When you specify a file to be transferred, the workstation scans the templates,
starting from template 1. It uses the first matching template to generate a name for
the transferred file and the transfer type.
Adding Templates
The list box for the Template window lists the currently stored templates.
To add a template:
1. Select any template from the list box.
The contents of the selected template appear under the list box.
2. Change the workstation or host file names or extensions by overwriting them;
then select the transfer type. (For details of the transfer types, see “Defining
Transfer Types” on page 173.)
3. Click Add.
The window for determining where in the list to display the new template
opens.
4. Select a template number and specify whether to display the new template
before or after the template that has that number. Click OK.
The new template is added to the list in the appropriate position.
Testing Templates
To test the contents of an added or changed template:
1. Select the template to be tested from the list box.
The number of the selected template appears in the Test Templates box in the
lower part of the window.
2. Select or enter data for the following items:
Test Mode
Determine which mode is to be used for the test: the mode in which a
file is transmitted from the workstation to the host system (send), or
the mode in which a file is transmitted from the host system to the
workstation (receive).
Templates
Determine which templates to test: only the template selected in step 1,
or all registered templates.
Items to Be Specified
Choosing the appropriate property page enables you to set the items described in
the following sections.
File Options
The file options that can be used depend on the type of the connected host system
and the host code page selected when the session was configured. Table 31 lists the
mode values for the file transfer options. “File Transfer for PC400” on page 177
lists transfer options.
Table 31. Mode Values for File Transfer Options
Mode Host Code Page
DBCS 930 (Japan Katakana)
930 (Japan Katakana - Extended)
939 (Japan Latin - Extended)
1390 (New Japanese Katakana - Extended)
1399 (New Japanese Latin - Extended)
933 (Hangeul)
1364 (Hangeul 1364)
935 (Simplified Chinese)
937 (Traditional Chinese)
1371 (Taiwan 1372)
SBCS Others
The record length of a file sent from a workstation to the host system might exceed
the logical record length specified here. If so, the host file transfer program divides
the file by the logical record length.
When sending a text file from a workstation to a host, if the text file contains
2-byte workstation codes (such as kanji codes), the record length of the file is
changed because SO and SI have been inserted.
To send a file containing long records to the host system, specify a sufficiently long
logical record length.
Because the record length of a workstation file exceeds the logical record length, a
message does not appear normally if each record is divided. To display a message,
add the following specification to the [Transfer] item of the workstation profile:
DisplayTruncateMessage = Y
Additional Options
The required host command options can be entered in the Additional Options text
box.
The following sections contain information about the items which can be defined
for file transfer options.
Data Transfer
You can choose whether the Data Transfer function (see Chapter 9, “Data Transfer
for PC400,” on page 97) is to be used instead of the normal file transfer function.
Bidirectional Options
The following options apply if the session is configured for an Arabic or Hebrew
host code page.
v Host File Orientation
v PC File Orientation
v PC File Type
v Lam-Alef Expansion
v Lam-Alef Compression
v Symmetric Swapping
v Round Trip
v Numeral Shape
Host Command
You can specify host command to be called when file transfer starts. If nothing is
entered in this text box, APVAFILE is used for 5250 sessions.
Default PC Directory
You can specify the default directory that appears in the Send File to Host or
Receive File From Host window. To select the directory, click the Browse button.
Default Library
You can specify the eServer i5 or iSeries library to be used as the default.
PC Code Page
When a file is transferred, EBCDIC codes are converted to 1-byte workstation
codes, and vice versa. A valid value is automatically selected from among the
following values for SBCS sessions: 437, 737, 806, 813, 819, 833, 850, 852, 854, 857,
858, 860, 861, 862, 863, 864, 865, 866, 869, 874, 912, 915, 916, 920, 921, 922, 1008,
1089, 1124, 1125, 1127, 1129, 1131, 1133, 1153, 1155, 1156, 1157, 1158, 1160, 1164, 1250,
1251, 1252, 1253, 1254, 1255, 1256, 1257, and 1258; and from the following values
for DBCS sessions: 897 and 1041 (Japanese); 1088 and 1126 (Hangeul); 1114
(Simplified Chinese and Traditional Chinese)—according to the host code page
specified when the workstation is configured. For an explanation of how to select
host code pages, see the online help for the host code page.
File-Transfer Timeout
You can define the time the workstation waits for a response from the host system
(in seconds). If the host system does not respond, the transfer is canceled, and an
error message appears. A number in the range 20–65535 (or 0) can be specified.
The default timeout is 30 seconds. Specify an appropriate value such that the error
message does not appear too early. If you specify 0, a timeout is not set.
If a packet or block size is relatively large for low-speed lines, such as SDLC or
COM port lines, it is recommended that 150 seconds or greater be specified.
Note: This will change the size of the record on the personal computer; this should
not be a problem for normal text files, but exercise caution when formatted
files and databases are being transferred.
When you use a DBCS session as the host session, that is, when 930 or 939
(Japanese), 933 or 1364 (Hangeul), 935 (Simplified Chinese), or 937 (Traditional
Chinese) is specified during configuration as the host code page, you can create
and change a translation table for the user-font area. A DBCS translation table is
then used for displaying a screen, printing, and sending and receiving files.
For bidirectional sessions, the Host and PC default code pages are dependent on
the Windows system locale. For Hebrew Windows, the host code page is 424 and
the PC code page is 1255. For Arabic Windows, the host code page is 420 and the
PC code page is 1256. You can change the values by updating the translation table.
or
[Transfer]
DisplayTruncateMessage=Y
The next time the session is started, this specification becomes active.
Use the source specifications input utility (SIU) to renumber records when saving
the file after editing.
For the maximum number of members (MAXMBRS), a physical file attribute, the
default value is 1. When a physical file is created during file transfer, MAXMBRS is
1.
When a file is transferred from a workstation to a physical file, the default file
name xxxBIN is assumed (xxx is a workstation file extension.) If you transfer more
Use the DSPMBRLST command to list eServer i5 or iSeries files or members. The
command format is as follows:
DSPMBRLST LIB(lib-name) FILE(file-name)
LIB parameter
The LIB parameter contains the target library name. The default value is
*USRLIBL. Extensive specification, such as *ALL, * for generic name, is
possible, but is time-consuming. eServer i5 or iSeries files or members are
listed more efficiently if a specific name is specified.
FILE parameter
The FILE parameter contains the target file name. There is no default
value. The parameter must be specified. *ALL and * for generic name can
be specified.
Specifying the JISCII option when receiving a file does the following:
v Converts EBCDIC codes to 1-byte workstation codes
v Converts IBM kanji codes to 2-byte codes
v Removes SO (hex 0E) and SI (hex 0F) before and after a kanji field
For other DBCS sessions, such as Korean, Chinese, or Taiwanese, specify the ASCII
file transfer option.
This chapter describes how to build the data of the grid-line screen (method 1).
For information about the screen grid lines provided by DDS (method 2), please
refer to the eServer i5 or iSeries publications.
The host system always sends the grid-line designation data, which specifies any
one of the four types of the grid lines (a), (b), (c), (d) (no grid line), for the 1920 (24
lines by 80 columns) positions respectively.
As a result, a grid line, such as (e) is displayed by gathering these vertical lines
and horizontal lines.
a b c d
23rd line
b
f
24th line
c g
h
25th line
To store the data of the grid-line screen format, PC400 provides the grid-line
information buffers F and B. When PC400 receives data which contains the
identification F or B from a host system, PC400 displays the data of the grid-line
screen format and the character data concurrently. The following figure shows the
relation between the designated grid-line information buffer and the character data
to be displayed.
Buffer
for receiving
Switch
xxxx xxxxxxxx
xx xx xx
To specify which buffer to be used, the character data F or B with the non-display
attribute should be set at the designated position in the grid-line screen-format
data and the character data.
The grid-line screen format is not displayed when its format gets stored into the
buffer. It is displayed when the character data that contains the F or B with the
non-display attribute is received at the specified position.
Note: The control codes should be defined to be set in a different field from the
character data. If these control codes are set in the same field as the
character data, the grid line will not be displayed correctly or unexpected
data will be displayed.
Hexadecimal numbers are used for the control codes and the data in the following
description, unless otherwise specified.
KEISEN
KAKIKOMI
Control Code
20
27 2F nn or
27
non-display attribute
character
Grid line information buffer designation data
27 xx C3 CC 20
non-display alphabet C attribute character
Grid line Grid line color
definition data designation data
This control data is sent as normal display data from an application program on
the host system. The starting position for displaying this data should be specified
as follows:
1. Grid-line draw control code: first line, first column
2. Grid-line designation data: first line, fourth column
The last byte of the control code should be the attribute X'20' or X'27', which
indicates the end of the field. This attribute character should be sent from the host
so that it can be overridden with the non-display attribute X'27', which is the first
byte of the grid-line designation data. Items 1 and 2 should be defined as different
fields. When it receives the grid-line draw control code and the grid-line
designation data, PC400 stores the grid-line designation data in the specified
grid-line information buffer.
However, the grid-line screen format is displayed when receiving character data
that contains the information to display the grid-line screen format.
20
27 2F nn or
27
non-display attribute
Note: When PC400 receives the grid-line draw control code, the current contents
of the specified grid-line information buffer are deleted to prepare the buffer
to store other grid-line definition data.
27 xx .. .. .. .. xx C3 CC 20
non-display 640 bytes alphabet C attribute
character
The designation data defines the grid-line information for each screen position
from the first line, first column to the 24th line, 80th column, respectively. It
defines the grid lines for three columns using a byte, so the length of this data is
fixed-length 640 bytes as follows:
24 rows * 80 columns / 3 = 640
The following illustration shows the relation between the actual grid lines on the
display screen and the grid-line definition data.
. . .
fix fix fix fix
Grid line
definition data 01 11 10 01 01 11 10 -- 01 -- -- 01 -- -- 00
27 79 7- --- -- -- C3 CC 20
alphabet C attribute
character
Grid line color
designation data
This data is used to delete the contents in the grid-line information buffer specified
by the parameter.
Parameter Meaning
xx ... xx Grid-line definition data
CC Reserved
To display the grid-line screen format on the screen, an application program on the
host system should send the following character screen format to PC400. Character
data longer than 1 byte should be sent with it so that the grid line can be
displayed.
28 2F nn 20
blink attribute
character
non-display
The position from the first to the fourth column on the first line of the user screen
format can not be used as character data when displaying the grid line in the
user-defined screen format. In addition, the character “F” or “B” should be present
at the first row and third column position. If it does not exist, the grid-line screen
format is not displayed and the user screen format which contains the only
character data is displayed.
For file transfer to and from ASCII hosts, using the XMODEM and YMODEM
protocols, see “Using XMODEM and YMODEM” on page 207.
VT connections to non-ASCII hosts, such as the IBM zSeries are also possible if you
have the appropriate communication devices.
Configuring a VT Session
Use the Customize Communication → ASCII Host panel to select values for the
parameters that define your ASCII host session. There are two types of parameters:
Session and Link.
Session Parameters
These parameters correspond to setup choices on a VT340 terminal.
Online/Local
In the Online state, the emulator receives data from the host computer,
and can send data to it. In the Local state, data you enter on the keyboard
appears on the screen, but is not sent to the host; data from the host is
held, and not presented on the screen until you change the state to Online.
Operating Mode
Select Char if the host does not echo the characters you type on your
keyboard. The VT emulator displays them as it sends them to the host.
Select Echo if the host echos your keyboard characters for display. The VT
emulator displays them only as they return from the host.
If you see doubled characters, you should select Echo instead of Char.
Echo is the default.
Machine Mode
There are four machine modes. These are:
VT340 mode, with 7-bit controls
This is the default. This mode is recommended for most
applications.
VT340 mode, with 8-bit controls
The emulator is set for an 8-bit environment with 8-bit controls.
VT100 mode
This mode is intended for situations requiring strict compatibility
with the VT100 terminal. In general, the VT340 7-bit mode is
appropriate for applications that expect a VT100.
VT52 mode
This mode is only for applications designed for the VT52 terminal.
Screen Size
You can choose the number of rows and columns that the session screen
displays. The choices are
v Rows: 24, 36, 48, 72, and 144
v Columns: 80 and 132
The defaults are 24 rows and 80 columns.
Type of Host Code-Page
The choices are for the host code page are National, PC, and Multinational.
Optional Parameters
These parameters correspond to setup choices on a VT340 terminal.
Reverse Screen Image
Check this box to reverse the foreground and background colors.
User Feature Lock
Check this box to lock the following functions so that the host cannot
change them.
v Auto Repeat
v Keyboard Lock
v Reversed Screen Image
v Tab Stops
Auto Wrap
Check this box if you want the VT emulator to start a new line whenever
the current row of characters reaches the end of line.
Auto-Answer Back Message
Check this box if you want the VT emulator to send a message
automatically to the host, once a connection has been established.
Move Cursor on Mouse Click
Select this option if you want the cursor to move when you click the left
mouse button in the session window presentation space.
Answer Back Message
Enter the message, which is a maximum of 31 characters, to send to the
host when communication is established.
Conceal
If you check this box, your answerback message is not displayed in the
configuration window. After you conceal your message, the Conceal box
has no effect, and the message remains concealed until it is changed.
User Defined Key Lock
Check this box to lock user-defined keys. For example, you can select User
Link Parameters
The Configure Links button take you to a panel for configuring the details of the
connection to the ASCII host computer. The panel you see depends upon the
attachment type that you chose for your ASCII host. There are two types:
v VT over Async
v VT over Telnet
For VT over Async attachment, you must define the following items.
Attachment Parameters
Communication Port
Select the number of the communications port though which your async
connection will be established. The choices are COM1, COM2, COM3, and
COM4. The default is COM1.
Line Speed (bps)
Line speed is the data transmission speed in bits per second.
If you have a 14,400 or 28,800 baud modem, its use of V.42bis compression
technology allows you to take advantage of the highest speeds that your
system supports. For a 14,400 baud modem, select a line speed of 57,600 or
lower; for a 28,800 baud modem, select 115,200 or lower.
If you are not successful with these high speeds, you may need to select a
lower line speed. For example, if your COM port does not have a FIFO
buffer, you might need to select a lower speed. When a connection attempt
fails or is not reliable at a higher speed, try a lower speed.
The default speed is 9600 bps.
The maximum usable speed depends on the capability of the processor or
the communication port. If your connection fails, try a slow speed.
If you use the 8250 UART, your line speed should not be higher than
19,200 bps.
For the VT over Telnet attachment, you must define the following attachment
parameters.
v Host Name or IP Address (mandatory)
v Port Number (optional)
v Terminal ID (optional)
v Auto-reconnect (optional)
Auto-reconnect
If the session is disconnected from the host, and if this box is selected, you
will be re-connected automatically.
The default is not selected.
Using A VT Session
Your Personal Communications VT session works as if you were using a VT340,
VT100, or VT52 terminal. For eServer i5, iSeries, or mainframe VT connections, the
protocol converters have defined VT keyboard sequences, such as F1 or PA1.
Refer to Administrator’s Guide and Reference for default mapping of the VT340
keyboard to the PC keyboard, as used by the Personal Communications VT
emulator.
Compose Key
The VT emulator supports the VT340 compose key for generating special
characters on the display. Before using the compose key, define a key combination
that represents it.
Table 32 shows the appearance and name of each special character, the character
pair that generates the character, and an indication whether the order of entering
the characters is significant.
Table 32. Character Generation (Special Characters)
Generated Character Compose Key, Plus This Pair
Appearance Description First Second Order
Á A acute A ' either
á a acute a ' either
 A circumflex A ^ either
â a circumflex a ^ either
À A grave A ` either
à a grave a ` either
Å A ring A * either
A ° either
å a ring a * either
a ° either
à A tilde A ~ either
ã a tilde a ~ either
Ä A umlaut A " either
ä a umlaut a " either
Æ AE ligature A E as shown
æ ae ligature a e as shown
u apostrophe ' space either
@ at sign a a either
A A either
\ backslash / / either
\ backslash / < either
Ç C cedilla C , either
ç c cedilla c , either
¢ cent sign c / either
C / either
c | either
C | either
^ circumflex accent ^ space either
} close brace ) - either
è e grave e ` either
ì i grave i ` either
Ñ N tilde N ~ either
ñ n tilde n ~ either
# number sign + + either
Ó O acute O ' either
ó o acute o ' either
Ô O circumflex O ^ either
ô o circumflex o ^ either
Ò O grave O ` either
ò o grave o ` either
Ø O slash O / either
ø o slash o / either
Õ O tilde O ~ either
õ o tilde o ~ either
Ö O umlaut O " either
ö o umlaut o " either
Œ OE ligature O E as shown
œ oe ligature o e as shown
ù u grave u ` either
Transparent Mode
Table 33 shows the symbol displayed for each character and control code when the
VT emulator is in transparent mode. The characters at AA and BA are the feminine
and masculine ordinals, respectively. The characters at 1E, 1F, 80, and 9E are
underlined, although they may not appear underlined on the output.
Table 33. Character Generation (Transparent Mode)
0x 1x 2x 3x 4x 5x 6x 7x 8x 9x Ax Bx Cx Dx Ex Fx
x0 @ P 0 @ P p p Ÿ ° À Ð à ð
x6 F V & 6 F V f v f v ¶ Æ Ö æ ö
x7 G W ' 7 G W g w g w § · Ç × ç ÷
x8 H X ( 8 H X h x h x } q È Ø è ø
x9 I Y ) 9 I Y i y i y © ¹ É Ù é ù
xA J Z * : J Z j z j z a o Ê Ú ê ú
xB K [ + ; K [ k { k { « » Ë Û ë û
xC L \ , < L \ l | l | ¬ ¼ Ì Ü ì ü
xD M ] - = M ] n } m } − ½ Í Ý í ý
xE N ^ . > N ^ m n ¾ Î Þ î þ
xF O _ / ? O _ n Œ o œ ¯ ¿ Ï ß ï ÿ
When history logging is enabled, text is logged into the VT history window as it
scrolls off the screen from the top margin row. The top and bottom margins are set
when the host application defines the scrolling region, using the DECSTBM
command sequence ((ESC [ Pn ; Pn r)).
For file transfer over asynchronous lines, you must select eight data bits and
hardware flow control. See “Configuring Links for VT over Async” on page 195 for
details.
Choosing a Protocol
You have four choices for protocols. The one you select will depend upon the
protocols supported by your ASCII host and by your particular requirements. The
following table shows the capabilities of the protocols:
Downloading Uploading
Single File Multiple Files Single File Multiple Files
XMODEM Yes No Yes No
XMODEM1K Yes No Yes No
YMODEM Yes Yes Yes Yes
YMODEMG Yes Yes Yes Yes
XMODEM
The XMODEM protocol is a single-file half-duplex protocol that performs
error checking. Data is transmitted in 128-byte packets. Error checking,
either by CRC or by checksum, occurs automatically. The Personal
Communications implementation of XMODEM first tries CRC. If the
sender fails to acknowledge the first three requests for CRC, XMODEM
shifts to the checksum mode.
XMODEM1K
The XMODEM1K protocol is the same as XMODEM, except that it always
uses CRC and has a larger packet size of 1024 bytes. Because some hosts
are not able to handle the 1024-byte packets, there is a need for both
XMODEM and XMODEM1K
YMODEM
The YMODEM protocol is similar to XMODEM, but it allows you to send
multiple files in a single transfer. You may use a set of unique file names,
or you may specify groups of files.
YMODEMG
The YMODEMG protocol is the same as YMODEM, supporting multiple
files, but it does not supply error checking. It assumes that the data always
transfers correctly, and is only for use with error-correcting modems. For
When receiving a file, in the Receive File from Host dialog box, enter the file name
in the PC File field or select a personal computer file name from the drop-down
listbox. The transfer type is automatically generated according to the templates.
When receiving a file, you cannot select the personal computer file name, but you
can change the default transfer type, the drive, and the directory, if necessary.
File-Transfer Timeout
You can define the time the workstation waits for a response from the host system
(in seconds). If the host system does not respond, the transfer is canceled, and an
error message appears. A number in the range 20–65535 (or 0) can be specified.
The default is 60 seconds for ASCII sessions. Specify an appropriate value such
that the error message does not appear too early. If you specify 0, a timeout is not
set.
If a packet or block size is relatively large for low-speed lines, such as COM port
lines, it is recommended that 150 seconds or greater be specified.
6. Click OK.
Defining Templates
The templates are common for all sessions and are used for both sending and
receiving files. For ASCII host file transfer, you can define up to three templates for
each protocol.
To display the templates panels, click the Templates button in the Send File to
Host or Receive File from Host panel.
You can add, delete, or replace templates; you can also test templates to see how
Personal Communications generates the target file name and transfer type.
When defining templates, you can use * (asterisk) for the global searching of file
names; for example, *.EXE for all files that have a file name extension of EXE.
For more information about templates, refer to Administrator’s Guide and Reference.
Following are the definitions of the three default templates. The template is
selected from the available choices by matching the name of the file being
transmitted or received against each template’s file specifications.
Wildcard Wildcard
specification for PC specification for host
Template Number File File Type
1 *.exe *.* delete
2 *.txt *.* over
3 *.* *.* none
You can transfer multiple files at once by using the send/receive list; it is
accessible from the Send Files to Host or Receive Files from Host windows. For
either window, the files selected are displayed in a Transfer List. This list can be
saved, and later retrieved and modified. For instructions on selecting a file, see
“Receiving Files from an ASCII Host” on page 211 and “Sending Files to an ASCII
Host” on page 212.
Note: Personal Communications does not recognize a file as a send/receive list file
unless its name has the specified extension.
Change the Personal Computer or Host File Name: When you select a file to
send or receive, Personal Communications automatically generates a host or
personal computer file name by using templates. To change the generated file
name, just type over it.
Note: When receiving a file from an ASCII host, you specify the host file name on
the host system.
For receiving files, you can select a personal computer file from the dialog
obtained by clicking the Browse button.
Note: The browse function is not available when receiving files from an ASCII host;
it is available when sending files, but only when using the YMODEM or
YMODEMG protocols.
Delete File Names From List: To delete a file from the list, select it from the list
and click the Remove button.
Add More File Names To List: To add more files to the list, select a file in the PC
File list box with Ctrl + left mouse-button, or type a file name in the PC File entry
field and press Enter.
For ASCII host file transfer, the host system must support one of two protocols,
XMODEM or YMODEM.
Follow these steps to receive one or more files from an ASCII host:
Note: The host system must support one of two protocols: XMODEM or
YMODEM.
3. Click Edit → Preference → Transfer to display the Transfer Preferences window.
Select the type of protocol you want to use from the drop-down list box on
the property page with the General tab.
4. In the Default PC Directory field, type the workstation directory where the
file or files should be sent; or, click the Browse button to open a dialog and
select the directory.
5. To change the transfer parameter defaults for the protocol you selected, click
the tab to display the property page for the selected modem protocol.
6. When all preferences have been set, click OK.
7. Click Receive File from Host from the Actions menu. The Receive File from
Host window appears.
8. For XMODEM and XMODEM1K, click the Browse button to open a dialog
and select a personal computer file name or names, or enter the names in the
PC File entry field. The transfer type is automatically generated and appears
in the Transfer Type entry-field.
9. For YMODEM and YMODEMG, select the transfer type and click the Browse
button to open a dialog and change the directory, if you desire.
10. Click the Receive button to display the Receive Files Status window and start
the transfer.
Note: This is supported using the YMODEM and YMODEMG protocols only.
Select files from the dialog obtained by clicking the Browse button.
Note: For ASCII host file transfer, you can use the send/receive list only with the
YMODEM and YMODEMG protocols (not with XMODEM or XMODEM1K).
Advanced Method
The Browse window, obtained by clicking the Browse button, displays all the files
in the current directory; you can display only certain types of files if you want to.
For example, if the directory has many files and you want to display only files that
have the extension .DOC, you can type *.doc in the PC File field and click the
Browse button; the resulting dialog shows only files that have the extension .DOC.
Note: For ASCII host file transfer, you can use the send/receive list only with the
YMODEM or YMODEMG protocols (not with XMODEM or XMODEM1K).
PC Code Page
When a file is transferred, EBCDIC codes are converted to 1-byte workstation
codes, and vice versa. A valid value is automatically selected from among the
following values for SBCS sessions: 437, 737, 806, 813, 819, 833, 850, 852, 854, 857,
858, 860, 861, 862, 863, 864, 865, 866, 869, 874, 912, 915, 916, 920, 921, 922, 1008,
1089, 1124, 1125, 1127, 1129, 1131, 1133, 1153, 1155, 1156, 1157, 1158, 1160, 1164, 1250,
1251, 1252, 1253, 1254, 1255, 1256, 1257, and 1258; and from the following values
for DBCS sessions: 897 and 1041 (Japanese); 1088 and 1126 (Hangeul); 1114
(Simplified Chinese and Traditional Chinese)—according to the host code page
specified when the workstation is configured. For an explanation of how to select
host code pages, see the online help for the host code page.
IBM may have patents or pending patent applications covering subject matter
described in this document. The furnishing of this document does not give you
any license to these patents. You can send license inquiries, in writing, to:
IBM Director of Licensing
IBM Corporation
500 Columbus Avenue
Thornwood, NY 10594
U.S.A.
For license inquiries regarding double-byte (DBCS) information, contact the IBM
Intellectual Property Department in your country or send inquiries, in writing, to:
IBM World Trade Asia Corporation
Licensing
2-31 Roppongi 3-chome, Minato-ku
Tokyo 106, Japan
The following paragraph does not apply to the United Kingdom or any other
country where such provisions are inconsistent with local law:
INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS
PUBLICATION “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS
FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or
implied warranties in certain transactions, therefore, this statement may not apply
to you.
Licensees of this program who wish to have information about it for the purpose
of enabling: (i) the exchange of information between independently created
The licensed program described in this information and all licensed material
available for it are provided by IBM under terms of the IBM Customer Agreement
or any equivalent agreement between us.
All statements regarding IBM’s future direction or intent are subject to change or
withdrawal without notice, and represent goals and objectives only.
Trademarks
The following terms are trademarks of the IBM Corporation in the United States or
other countries, or both:
ACF/VTAM
AnyNet
APPN
CICS
COBOL/2
eServer
GDDM
i5/OS
IBM
IBM Global Network
IBMLink
Microsoft, Windows, Windows NT©, and the Windows logo are trademarks of
Microsoft Corporation in the United States and/or other countries.
Java, JavaBeans, and all Java-based trademarks and logos are trademarks of Sun
Microsystems, Inc. in the United States and/or other countries.
Other company, product, and service names may be trademarks or service marks
of others.
R
O RECEIVE command 68
record format 61, 104
online help xii record length limit 145
record size
record length limit 145
P related publications xiii
packet size 64 releasing insert mode 42
Page Setup 17 request, transfer 102
partitioned data set 63 reserved word 129
PC code page 63, 175, 213
PC/3270 Sessions, Considerations for the Use of
File Transfer Function 44 S
Graphic Functions 45 saving
Support for Long File Names 44 keyboard layout 36
PCFDF entries 139 saving a transfer request 110
PCFL entries 141 screen-size control 42
PCFO entry 139 scroll bar 42, 95
PCFT entries 139 scroll-lock key 42
PCSERR999 error messages 51, 95 SCS SPD/SLD command (LU 1) 51
PDF 23 SCS TRN command (LU 1) 51
PDT files 23, 24 SDDLU 52
PDT mode 52, 96 SEND command 68
physical database file 103 show status window 208
plotter 49 source file
Power Management transferring data to 99
data transfer 13 SVF control code 52
file transfer 13
resume 13
sleep 13
wake 13 T
print buffer size 48 templates
print job control by using SNA timeout 50 file transfer 58, 171
Print Screen Collection test
Print Collection on Exit 22 combination 123
Purge Collection 22 logical AND and logical OR 123
printable area 52, 95 trademarks 218
printer definition file 23 transfer function 101
printer definition table 23 transfer options 63, 174
printer setup 17 data transfer 174
printing transfer request
code page 27 definition 102
Collect Screen transfer requests for receiving (example) 129
Print Collection on Exit 22 transferring data to eServer i5 or iSeries 98
Purge Collection 22 transferring data to the host 98
display sessions 22
multiple print screen 22
Page Setup parameters 17 U
PDT Files 23 using bitmaps for drawing 48
Print Screen Collection
Print Collection on Exit 22
Purge Collection 22
printer sessions 23 V
PrinterFontCodePage parameter 27 vector graphics 46
printing to disk 26 VM disk 63
setup 17 VT Emulation 200
translation table 27 Configuring 191
Printing 17 Additional Configuration Information for VT over
printing reverse-display characters with device fonts 51 Async 198
printing reverse-display characters with GDI fonts 51 Configuring Links for VT over Async 195
printing to disk 26 Configuring Links for VT over Telnet 199
programmed symbol sets, enabling 46 Link Parameters 195
programmed symbols 46 Optional Parameters 193
Session Parameters 192
Index 221
VT Emulation (continued)
Using a VT Session
Compose Key 200
OIA Line Display Messages 205
Transparent Mode 204
Printed in USA
SC31-8960-00