results of CL commands

160 pts.
Tags:
AS/400 errors
CL
RUNSQLSTM
how can i see the result of a cl command which i execute. For example, if i executing a command runsqlstm and it says command failed. how do i see the detailed description for the same result like why the command failed

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi,

You should see most of the results in the joblog (you can use DSPJOBLOG to see this). You may need to change your job to give you a more detailed logging level :-

CHGJOB LOG(4 00 *SECLVL) LOGCLPGM(*YES)

With RUNSQLSTM there may also be a spooled file created with an error report, so you should also take a look at the spooled files for your job.

Regards,

Martin Gilbert.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • graybeard52
    runsqlstm provides a printed report in the default outq whether it is successfull or not.
    3,115 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following