Problem solve Get help with specific problems with your technologies, process and projects.

How can I let the CL program know its job is running?

I'm wondering what the best way to let my CL program know whether its job is running in debug mode or not. I want to code my self-submitting CL so that if the job is in debug mode it will not submit itself to batch, otherwise it will. It would have to know whether it was in debug mode under STRDBG or STRISDB.

For STRDBG, you can use the Open List of Activation Attributes (QWVOLACT) API along with the Get List Entries (QGYGTLE), Find Entry Number in List (QGYFNDE), Close List (QGYCLST) to find the activation group name for ILE which would be:

If you are using STRISDB, you should find 5 files in QTEMP that you can do a CHKOBJ. Those files SHOULD be:

@@IMAGE, @@MAPHLL, @@MAPSEQ, QIXALOG, QIXAMPF. You can also use the above listed API's to check for the ISDB activation group QIXAAGRP in your job with the above listed API's.


The Best Web Links: tips, tutorials and more.

Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.

Dig Deeper on iSeries ILE programming

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.