Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

QCAPCMD and error codes

204 views
Skip to first unread message

Nicolas F

unread,
Aug 24, 1998, 3:00:00 AM8/24/98
to
Yes, you can check whether the command has the command the program passed
has been succesfully ran.
The field in position 8 of Error Code parameter (Exception ID, informat
ERRC0100) returns last message sent until the system gave the hand back to
QCAPCMD.
That means if you try to execute "CRTPF " command
-> the command is 'CRTPF File(DUMMYLIB/DUMMYFILE) RCDLEN(45)
-> Exception ID will contain 'CPF7302' (File 'DUMMYFILE' not
created in library 'DUMMYLIB')
-> the command is 'CRTPF File(BADNAME,%担3#/DUMMYFILE) RCDLEN(45)
-> Exception ID will contain 'CPF0001' (Error found in command)
-> one of the parameter of QCAPCMD is wrong
-> Exception ID will contain message ID such as 'CPF0008'
Value in option control block not valid)

I don't know anything about data queues

Hope it helps. Nicolas


Nicolas F

unread,
Aug 24, 1998, 3:00:00 AM8/24/98
to
I just forgot that when command is successful, Exception ID is blank

Nicolas

Nicolas F

unread,
Aug 25, 1998, 3:00:00 AM8/25/98
to
Please tell me if you find how the parameter in offset 7 of CPOP0100 format
(Message retrieve key) works.
I really don't understand how to log the command in job log


Nickb9772

unread,
Aug 25, 1998, 3:00:00 AM8/25/98
to
Hi Nicolas,

I have used QCAPCMD many times, but never used the request message
functionality.
However, I believe this is the intention:

1. Set the program up as a request processor. This is easiest in CL:
SNDPGMMSG yada yada MSGTYPE(*RQS)
RCVMSG yada yada KEYVAR(&KEY) RMV(*NO)

2. Use the &KEY variable in the call to QCAPCMD - this will allow the request
message sent previously to be altered by any prompting that occurs through the
use of this API.

Note that the RMV(*NO) is most important, as the API cannot get the message if
it has been removed.

3. Handle any exceptions that occur. This will include CPF1907, as it will be
sent if someone happens to attempt sysreq 2. see the CL programming manual.

Hope this is helpful.

Nick B.

0 new messages