30.06.2013 Views

File Management - IBM

File Management - IBM

File Management - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Finding out if a DBCS sort table exists<br />

218 <strong>File</strong> <strong>Management</strong> V4R5<br />

Use the Check Object (CHKOBJ)command to find out if a DBCS sort table exists in<br />

your system.<br />

For example, to find out if the table QCGMSTR exists, enter:<br />

CHKOBJ OBJ(QSYS/QCGMSTR) OBJTYPE(*IGCSRT)<br />

If the table does not exist, the system responds with a message. If the table does<br />

exist, the system simply returns without a message.<br />

Check for the existence of a DBCS active sort table when you want to sort<br />

double-byte characters for the first time. The DBCS active table for the DBCS<br />

language must exist to sort the characters.<br />

Saving a DBCS sort table onto tape or diskette<br />

Use the Save Object (SAVOBJ) command to save a DBCS sort table onto tape or<br />

diskette. Specify *IGCSRT for the object type.<br />

The DBCS sort tables are saved when you use the SAVSYS command so you do<br />

not have to use the SAVOBJ command when performing normal system backup.<br />

When to save a DBCS sort table onto tape or diskette<br />

Save a DBCS sort table onto tape or diskette in the following instances:<br />

v Before deleting that table<br />

v After information is added, updated, or changed in the tables using the<br />

character generator utility<br />

v When planning to use the tables on another AS/400 system<br />

Restoring a DBCS sort table from tape or diskette<br />

Use the RSTOBJ command to restore a DBCS sort table from a tape or a diskette<br />

onto the system. The tables on the tape or diskette must previously have been<br />

saved using the SAVOBJ command. Specify *IGCSRT for the object type. The<br />

system automatically re-creates the DBCS sort table when the specified table does<br />

not already exist in the system.<br />

These tables must be restored to the QSYS library for the system to know they<br />

exist. For that reason, RSTOBJ restores *IGCSRT objects only to the QSYS library<br />

and only if the objects do not already exist there.<br />

Copying a Japanese DBCS master sort table to a data file<br />

Through the character generator utility, use the CPYIGCSRT command to copy the<br />

Japanese DBCS master sort table (QCGMSTR) to a data file. This data file can then<br />

be moved to a System/36 system or AS/Entry system to replace the Japanese<br />

master sort table there.<br />

When to copy the Japanese DBCS master sort table to a data file<br />

Copy the Japanese DBCS master sort table to a data file in the following instances:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!