<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>blog.mycado.fr &#187; JCL</title>
	<atom:link href="http://blog.mycado.fr/tag/jcl/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mycado.fr</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 28 Oct 2009 12:21:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Let&#8217;s start with JCL</title>
		<link>http://blog.mycado.fr/2009/08/lets-start-with-jcl/</link>
		<comments>http://blog.mycado.fr/2009/08/lets-start-with-jcl/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 02:23:44 +0000</pubDate>
		<dc:creator>Stéphane Journot</dc:creator>
				<category><![CDATA[IBM system z]]></category>
		<category><![CDATA[JCL]]></category>
		<category><![CDATA[z/OS]]></category>

		<guid isPermaLink="false">http://blog.mycado.fr/?p=185</guid>
		<description><![CDATA[You probably know PHP, Java, C, and lot of other programming languages, but what about JCL ? No, it&#8217;s not about Java, it&#8217;s about Job Control Language a scripting language used on mainframe to instruct the system on how to run a batch job. It is possible to submit JCL for batch processing or directly [...]]]></description>
			<content:encoded><![CDATA[<p>You probably know PHP, Java, C, and lot of other programming languages, but what about JCL ? No, it&#8217;s not about Java, it&#8217;s about Job Control Language a scripting language used on mainframe to instruct the system on how to run a batch job. It is possible to submit JCL for batch processing or directly by to start a JCL procedure (PROC). JCL is very important to create, check, correct and run the daily batch workload.</p>
<p>It&#8217;s easy, you have three basic  statements:</p>
<ul>
<li><strong>JOB</strong>: Provides a name (jobname) for the batch.</li>
<li><strong>EXEC</strong>: Provides the name of a program to execute.</li>
<li><strong>DD</strong>: For Data Definition, provides inputs/outputs to the program.</li>
</ul>
<p>Let&#8217;s see a JCL example:</p>
<pre>//MYJOB     JOBTES 1
//MYSORT    EXEC PGM=SORT
//SORTIN    DD DISP=SHR,DSN=SUP01.TAB.TEST
//SORTOUT   DD SYSOUT=*
//SYSOUT    DD SYSOUT=*
//SYSIN     DD *
SORT FIELDS=(1,4,CH,A)
/*</pre>
<p>Now, try to understand what&#8217;s happen here.</p>
<ul>
<li><strong>MYJOB</strong> is the jobname associates to the workload, here it&#8217;s &#8220;JOBTES&#8221;.</li>
<li><strong>MYSORT</strong> is the stepname, which ask the system to execute a program called &#8220;SORT&#8221;.</li>
<li><strong>SORTIN</strong> is the program input, here with the DSN (Data Set Name) SUP01.TAB.TEST, and the dataset can be shared (DISP=SHR).</li>
<li><strong>SORTOUT</strong> is the SORT program output.</li>
<li><strong>SYSOUT</strong> specifies to send system output to JES (Job Entrey Subsystem), but it&#8217;s also possible to send the outpu to a dataset.</li>
<li><strong>SYSIN</strong> tell the SORT program which fields of the SORTIN data records are to be sorted.</li>
</ul>
<p>Enough for the moment, JCL is quite hard at beginning !</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mycado.fr/2009/08/lets-start-with-jcl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
