You can use QCMDEXC to request double-byte character set (DBCS) input data to be entered with a command. The command format used for QCMDEXC to prompt double-byte data is:
CALL QCMDEXC ('command' command-length IGC)
The third parameter of the QCMDEXC program, IGC, instructs the system to accept double-byte data. For example, the following CL program asks a user to provide double-byte text for a message. Then the system sends the following message:
PGM CALL QCMDEXC ('?SNDMSG' 7 IGC) ENDPGM
An explanation of the system message follows:
The following display is shown after running the QCMDEXC program.
You can use double-byte conversion on this display:
+--------------------------------------------------------------------------------+
| SEND MESSAGE (SNDMSG) |
| |
|TYPE CHOICES, PRESS ENTER. |
| |
|MESSAGE TEXT . . . . . . . . . . . . _______________________________________ |
|_____________________________________________________________________________ |
|_____________________________________________________________________________ |
|_____________________________________________________________________________ |
|_____________________________________________________________________________ |
|_____________________________________________________________________________ |
|___________________________________________________________________ |
|TO USER PROFILE . . . . . . . . . . __________ NAME, *SYSOPR, *ALLACT... |
| |
| |
| |
| |
| |
| |
| |
| |
| BOTTOM |
| F3=EXIT F4=PROMPT F5=REFRESH F10=ADDITIONAL PARAMETERS F12=CANCEL |
| F13=HOW TO USE THIS DISPLAY F24=MORE KEYS |
+--------------------------------------------------------------------------------+
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.