Progress/400
Product Guide
QCMD Functions
Two techniques are available for submitting OS/400 commands from a Progress client:
- If the value for the CMD parameter is an OS/400 command, the Progress/400 DataServer issues an SBMJOB command using the entries that you provide on the parameter form. (It uses the SBMJOB command default values if you do not specify an entry is for a parameter on the form.) See Table 11–4 for a list of SBMJOB parameters and default values.
NOTE: You must use an asterisk instead of an exclamation point for all DataServers whose code pages do not translate to the exclamation point in the same way as code page IBM037.- If the first character for the CMD parameter is an exclamation point (!) or an asterisk (*), and the second character is a space, the Progress/400 DataServer executes the command immediately. (The command begins on the third character of the entry.)
QCMD Field Size Limitation
The field cmd in the QCMD file has a maximum length of 256 characters. However, a format of x(60) has been defined for the field cmd in the as4empty.df file. This allows entering only 60 characters when an UPDATE cmd is performed. The solution to this limit is to use the following p-code to allow entry of up to 256 characters into the cmd field:
The following p-code will fill the field cmd with all characters in the assign statement:
The Progress/400 DataServer supports a special command for opening and closing files.
NOTE: For the CLOSE commands, there is no space between the exclamation point (!) and the CLOSE keyword.If the entry is not one of these cases, Progress/400 writes a message to the job log and does not perform any processing.
When you use QCMD for the SBMJOB command, Progress/400 submits the command to the job queue specified for the JOBQ parameter, where it runs under the user profile specified for the USER parameter. When you use QCMD to process a special Progress/400 command, the DataServer immediately processes it and ignores the remaining SBMJOB parameters.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |