File Management - IBM
File Management - IBM File Management - IBM
DBCS display support 208 File Management V4R5 The following sections describe information on displaying double-byte characters. “Inserting shift-control double-byte characters” “Number of displayed extended double-byte characters” “Number of DBCS input fields on a display” “Effects of displaying double-byte data at alphanumeric work stations” on page 209 Inserting shift-control double-byte characters The system inserts shift-control characters into DBCS-only fields automatically. To insert shift-control characters into open fields or either fields, do the following: 1. Position the cursor in the field in which you want to insert double-byte data. 2. Press the Insert Shift Control Character key (according to your DBCS display station user’s guide). The system inserts a pair of shift-control characters at the same time, as follows (where 0E represents the shift-out character and 0F represents the shift-in character): 0E0F The system leaves the cursor under the shift-in character and puts the keyboard in insert mode. Insert double-byte characters between the shift-control characters. To insert double-byte characters, start keying in double-byte characters at the cursor position. For example, enter the double-byte character string D1D2D3, as follows (where 0 E represents the shift-out character, 0 F represents the shift-in character, and D1, D2, and D3 represent three double-byte characters): 0 ED1D2D30 F To find out if a field already has the shift-control characters, press the Display Shift Control Character key. DBCS-graphic fields store double-byte characters without requiring the use of shift control characters. Shift control characters should not be inserted in graphic fields. Number of displayed extended double-byte characters The system can display up to 512 different extended characters on a Japanese display at one time. Additional extended characters are displayed as undefined characters. However, the additional extended characters are stored correctly in the system. Number of DBCS input fields on a display The use of DBCS input fields affects the total number of input fields allowed on a display. For a local 5250 display station, you can specify as many as 256 input fields. However, each three instances of a DBCS field reduces the maximum
number of fields by one. For example, if there are 9 DBCS fields on a display, then the maximum is 256 − (9/3) = 253 input fields. Effects of displaying double-byte data at alphanumeric work stations Copying DBCS files Alphanumeric display stations cannot display double-byte data correctly. If you try to display double-byte data at an alphanumeric display station, the following happens: v The system sends an inquiry message to that display station, asking whether you want to continue using the program with double-byte data or to cancel it. v If you continue using the program, the system ignores the shift-control characters and interprets the double-byte characters as though they were single-byte characters. Displayed double-byte data does not make sense. You can copy both spooled and nonspooled DBCS files. “Copying spooled DBCS files” “Copying nonspooled DBCS files” Copying spooled DBCS files Copy spooled files that have double-byte data by using the Copy Spooled File (CPYSPLF) command. However, the database file to which the file is being copied must have been created with the IGCDTA(*YES) value specified. When copying spooled files to a database file that contains double-byte data, an extra column is reserved for the shift-out character. This shift-out character is placed between the control information for the record and the user data. The following table shows the shift-out character column number, based on the value specified for the Control Character (CTLCHAR) keyword: CTLCHAR Value Column for Shift-Out Character *NONE 1 *FCFC 2 *PRTCTL 5 *S36FMT 10 Copying nonspooled DBCS files You can use the Copy File (CPYF) command to copy double-byte data from one file to another. When copying data from a double-byte database file to an alphanumeric database file, specify one of the following on the CPYF command: v If both files are source files or if both files are database files, you can specify either the FMTOPT(*MAP) parameter or the FMTOPT(*NOCHK) parameter. v If one file is a source file and the other file is a database file, specify the FMT(*CVTSRC) parameter. Appendix B. Double-byte character set support 209
- Page 168 and 169: value of *OWNER indicates that only
- Page 170 and 171: 160 File Management V4R5 You can us
- Page 172 and 173: 162 File Management V4R5 QFNC Finan
- Page 174 and 175: 164 File Management V4R5 If a job b
- Page 176 and 177: Spooling subsystem 166 File Managem
- Page 178 and 179: 168 File Management V4R5 the DLTSPL
- Page 180 and 181: Table 20. Open Feedback Area (conti
- Page 182 and 183: Table 20. Open Feedback Area (conti
- Page 184 and 185: Table 21. Device Definition List (c
- Page 186 and 187: Table 21. Device Definition List (c
- Page 188 and 189: Table 21. Device Definition List (c
- Page 190 and 191: Table 23. Common I/O Feedback Area
- Page 192 and 193: Table 23. Common I/O Feedback Area
- Page 194 and 195: Table 23. Common I/O Feedback Area
- Page 196 and 197: Table 24. I/O Feedback Area for ICF
- Page 198 and 199: Table 24. I/O Feedback Area for ICF
- Page 200 and 201: Table 26. I/O Feedback Area for Dat
- Page 202 and 203: Table 27. Get Attributes (continued
- Page 204 and 205: Table 27. Get Attributes (continued
- Page 206 and 207: Table 27. Get Attributes (continued
- Page 208 and 209: (SBCS) A B 1 2 1-Byte Code X’C1
- Page 210 and 211: 200 File Management V4R5 Table 28.
- Page 212 and 213: Invalid double-byte code and undefi
- Page 214 and 215: DBCS device file support 204 File M
- Page 216 and 217: 206 File Management V4R5 - Create D
- Page 220 and 221: 210 File Management V4R5 When you c
- Page 222 and 223: DBCS font tables 212 File Managemen
- Page 224 and 225: 214 File Management V4R5 CPYIGCTBLI
- Page 226 and 227: DBCS font files DBCS sort tables 21
- Page 228 and 229: Finding out if a DBCS sort table ex
- Page 230 and 231: 220 File Management V4R5 v When you
- Page 232 and 233: User-created dictionary for DBCS 22
- Page 234 and 235: Work with DBCS conversion dictionar
- Page 236 and 237: another alphanumeric entry in the e
- Page 238 and 239: Figure 22. Display Produced by the
- Page 240 and 241: 230 File Management V4R5 1. Positio
- Page 242 and 243: Figure 23. Example Screen 1 Positio
- Page 244 and 245: Figure 27. Example Screen 5 234 Fil
- Page 246 and 247: 236 File Management V4R5 - If you t
- Page 248 and 249: contains information on data descri
- Page 250 and 251: 240 File Management V4R5
- Page 252 and 253: CHGWTR (Change Writer) command 157
- Page 254 and 255: command, CL 160, 212 (continued) Tr
- Page 256 and 257: DBCS conversion dictionary (continu
- Page 258 and 259: file object authority 8 file proces
- Page 260 and 261: output queue (continued) changing 1
- Page 262 and 263: estriction DBCS files 206 deleting
- Page 264: WRKOUTQD (Work with Output Queue De
number of fields by one. For example, if there are 9 DBCS fields on a display, then<br />
the maximum is 256 − (9/3) = 253 input fields.<br />
Effects of displaying double-byte data at alphanumeric work<br />
stations<br />
Copying DBCS files<br />
Alphanumeric display stations cannot display double-byte data correctly. If you try<br />
to display double-byte data at an alphanumeric display station, the following<br />
happens:<br />
v The system sends an inquiry message to that display station, asking whether<br />
you want to continue using the program with double-byte data or to cancel it.<br />
v If you continue using the program, the system ignores the shift-control<br />
characters and interprets the double-byte characters as though they were<br />
single-byte characters. Displayed double-byte data does not make sense.<br />
You can copy both spooled and nonspooled DBCS files.<br />
“Copying spooled DBCS files”<br />
“Copying nonspooled DBCS files”<br />
Copying spooled DBCS files<br />
Copy spooled files that have double-byte data by using the Copy Spooled <strong>File</strong><br />
(CPYSPLF) command. However, the database file to which the file is being copied<br />
must have been created with the IGCDTA(*YES) value specified.<br />
When copying spooled files to a database file that contains double-byte data, an<br />
extra column is reserved for the shift-out character. This shift-out character is<br />
placed between the control information for the record and the user data. The<br />
following table shows the shift-out character column number, based on the value<br />
specified for the Control Character (CTLCHAR) keyword:<br />
CTLCHAR Value Column for Shift-Out Character<br />
*NONE 1<br />
*FCFC 2<br />
*PRTCTL 5<br />
*S36FMT 10<br />
Copying nonspooled DBCS files<br />
You can use the Copy <strong>File</strong> (CPYF) command to copy double-byte data from one<br />
file to another.<br />
When copying data from a double-byte database file to an alphanumeric database<br />
file, specify one of the following on the CPYF command:<br />
v If both files are source files or if both files are database files, you can specify<br />
either the FMTOPT(*MAP) parameter or the FMTOPT(*NOCHK) parameter.<br />
v If one file is a source file and the other file is a database file, specify the<br />
FMT(*CVTSRC) parameter.<br />
Appendix B. Double-byte character set support 209