<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://try-as400.pocnet.net/index.php?action=history&amp;feed=atom&amp;title=How_to_force_a_job_log_being_saved</id>
	<title>How to force a job log being saved - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://try-as400.pocnet.net/index.php?action=history&amp;feed=atom&amp;title=How_to_force_a_job_log_being_saved"/>
	<link rel="alternate" type="text/html" href="http://try-as400.pocnet.net/index.php?title=How_to_force_a_job_log_being_saved&amp;action=history"/>
	<updated>2026-05-05T21:01:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>http://try-as400.pocnet.net/index.php?title=How_to_force_a_job_log_being_saved&amp;diff=1262&amp;oldid=prev</id>
		<title>PoC: New</title>
		<link rel="alternate" type="text/html" href="http://try-as400.pocnet.net/index.php?title=How_to_force_a_job_log_being_saved&amp;diff=1262&amp;oldid=prev"/>
		<updated>2023-01-23T16:04:46Z</updated>

		<summary type="html">&lt;p&gt;New&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Batch jobs running in the background finishing without errors leave no trace what exactly they have done unless an error occurred. Sometimes it&amp;#039;s desirable &amp;#039;&amp;#039;&amp;#039;to force a job log&amp;#039;&amp;#039;&amp;#039; even when the job finished without error.&lt;br /&gt;
&lt;br /&gt;
If a job log is created or not is determined by the job description being used when the job was started. Thus, you can either create or modify a job description for such jobs, or manually force the same parameters on the &amp;lt;code&amp;gt;SBMJOB&amp;lt;/code&amp;gt; command, or for an existing job with the &amp;lt;code&amp;gt;CHGJOB&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
Job descriptions and &amp;lt;code&amp;gt;SBMJOB&amp;lt;/code&amp;gt; know a three-part parameter called &amp;#039;&amp;#039;log:&lt;br /&gt;
* Level&lt;br /&gt;
* Severity&lt;br /&gt;
* Text.&lt;br /&gt;
&lt;br /&gt;
Just forcing a job log can be done by adding&lt;br /&gt;
 LOG(*JOBD *JOBD *SECLVL)&lt;br /&gt;
&lt;br /&gt;
If this doesn&amp;#039;t provide enough details, you can also use&lt;br /&gt;
 LOG(4 0 *SECLVL) LOGCLPGM(*YES)&lt;br /&gt;
&lt;br /&gt;
Job logs will be placed in the default printer queue, which are determined also by the job description&amp;#039;s &amp;#039;&amp;#039;outq&amp;#039;&amp;#039; parameter.&lt;br /&gt;
&lt;br /&gt;
== Weblinks ==&lt;br /&gt;
* [https://www.ibm.com/support/pages/forcing-joblog-batch-jobs Forcing a Joblog for Batch Jobs], IBM.com&lt;br /&gt;
&lt;br /&gt;
[[Category: System Administration]]&lt;/div&gt;</summary>
		<author><name>PoC</name></author>
	</entry>
</feed>