<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>rexx-2 &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/rexx-2/</link>
	<description>Feed of posts on WordPress.com tagged "rexx-2"</description>
	<pubDate>Thu, 23 May 2013 12:37:54 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[REXX - Hello World]]></title>
<link>http://e1337tech.wordpress.com/2012/08/15/rexx-helloworld/</link>
<pubDate>Wed, 15 Aug 2012 00:20:52 +0000</pubDate>
<dc:creator>adam15free</dc:creator>
<guid>http://e1337tech.wordpress.com/2012/08/15/rexx-helloworld/</guid>
<description><![CDATA[/* REXX */ PRINT &#8220;Hello World&#8221;]]></description>
<content:encoded><![CDATA[<p>/* REXX */<br />
PRINT &#8220;Hello World&#8221;</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[REXX – PANEL Definition]]></title>
<link>http://mainframesf1.wordpress.com/2012/04/03/rexx-panel-definition/</link>
<pubDate>Tue, 03 Apr 2012 12:47:00 +0000</pubDate>
<dc:creator>rajeshar</dc:creator>
<guid>http://mainframesf1.wordpress.com/2012/04/03/rexx-panel-definition/</guid>
<description><![CDATA[REXX – PANEL Definition Each panel definition section begins with a statement that indicates the sec]]></description>
<content:encoded><![CDATA[<p style="text-align:center;"><span style="font-family:Verdana;text-decoration:underline;"><strong>REXX – PANEL Definition<br />
</strong></span></p>
<p><span style="color:black;font-family:Verdana;font-size:10pt;">Each panel definition section begins with a statement that indicates the section being defined. There are seven statements, one for the start of each of the sections. The statements are:<br />
</span></p>
<p><span style="color:black;font-family:Verdana;font-size:10pt;"><strong>)ATTR<br />
</strong></span></p>
<p style="margin-left:36pt;"><span style="color:black;font-family:Verdana;font-size:10pt;">attribute section<br />
</span></p>
<p><span style="color:black;font-family:Verdana;font-size:10pt;"><strong>)BODY<br />
</strong></span></p>
<p style="margin-left:36pt;"><span style="color:black;font-family:Verdana;font-size:10pt;">body section<br />
</span></p>
<p><span style="color:black;font-family:Verdana;font-size:10pt;"><strong>)INIT<br />
</strong></span></p>
<p style="margin-left:36pt;"><span style="color:black;font-family:Verdana;font-size:10pt;">initialization section<br />
</span></p>
<p><span style="color:black;font-family:Verdana;font-size:10pt;"><strong>)REINIT<br />
</strong></span></p>
<p style="margin-left:36pt;"><span style="color:black;font-family:Verdana;font-size:10pt;">reinitialization section<br />
</span></p>
<p><span style="color:black;font-family:Verdana;font-size:10pt;"><strong>)PROC<br />
</strong></span></p>
<p style="margin-left:36pt;"><span style="color:black;font-family:Verdana;font-size:10pt;">processing session<br />
</span></p>
<p><span style="color:black;font-family:Verdana;font-size:10pt;"><strong>)MODEL<br />
</strong></span></p>
<p style="margin-left:36pt;"><span style="color:black;font-family:Verdana;font-size:10pt;">model section (table displays only)<br />
</span></p>
<p><span style="color:black;font-family:Verdana;font-size:10pt;"><strong>)END<br />
</strong></span></p>
<p style="margin-left:36pt;"><span style="color:black;font-family:Verdana;font-size:10pt;">end of panel definition<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;">We will discuss one by one section below.<br />
</span></p>
<ol>
<li>
<div><span style="font-family:Verdana;font-size:10pt;"><strong>Attribute section </strong><a name="idx2506"></a>defines the special characters used in the body of the panel definition to represent attribute (start-of-field) bytes, such as high intensity, low intensity, and input field.<br />
</span></div>
<p><span style="font-family:Courier New;font-size:10pt;">)ATTR<br />
</span></p>
<p><span style="font-family:Courier New;font-size:10pt;"> * TYPE(TEXT) INTENS(HIGH) COLOR(WHITE) CAPS(OFF)<br />
</span></p>
<p><span style="font-family:Courier New;font-size:10pt;"> # TYPE(TEXT) INTENS(HIGH) COLOR(BLUE) HILITE(REVERSE)<br />
</span></p>
<p><span style="font-family:Courier New;font-size:10pt;"> ? TYPE(TEXT) INTENS(HIGH) COLOR(BLUE) HILITE(USCORE)<br />
</span></p>
<p><span style="font-family:Courier New;font-size:10pt;"> @ TYPE(TEXT) INTENS(LOW) COLOR(BLUE)<br />
</span></p>
<p><span style="font-family:Courier New;font-size:10pt;">TYPE – TEXT/INPUT/OUTPUT – If it is constant, input or output field<br />
</span></p>
<p><span style="font-family:Courier New;font-size:10pt;">INTENS – HIGH/LOW – Sets the Intensity<br />
</span></p>
<p><span style="font-family:Courier New;font-size:10pt;">COLOR – Basic colours are white, blue, turq, yellow, red, green<br />
</span></p>
<p><span style="font-family:Courier New;font-size:10pt;">HILITE(REVERSE) – To highlight the data<br />
</span></p>
<p><span style="font-family:Courier New;font-size:10pt;">HILITE(USCORE) – To underline the data<br />
</span></li>
</ol>
<p><span style="font-family:Verdana;font-size:10pt;">The default attribute characters are<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Verdana;font-size:10pt;">% &#8211; Text (protected) field, high intensity<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Verdana;font-size:10pt;">+ &#8211; Text (protected) field, low intensity<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Verdana;font-size:10pt;">_ &#8211; Input (unprotected) field, high intensity<br />
</span></p>
<ol>
<li>
<div><span style="font-family:Verdana;font-size:10pt;"><strong>Body section</strong> defines the format of the panel as seen by the user, and defines the name of each variable field on the panel.<br />
</span></div>
<p><span style="font-family:Verdana;font-size:10pt;"><strong>Syntax</strong><br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;">)BODY WIDTH() EXPAND() CMD() LMSG() SMSG() WINDOW(width,depth)<br />
</span></li>
</ol>
<div style="margin-left:18pt;">
<table style="border-collapse:collapse;" border="0">
<col style="width:97px;" />
<col style="width:517px;" />
<tbody valign="top">
<tr>
<td style="padding-left:7px;padding-right:7px;border:solid .5pt;"><span style="font-family:Verdana;font-size:10pt;">WIDTH() </span></td>
<td style="padding-left:7px;padding-right:7px;border-top:solid .5pt;border-left:none;border-bottom:solid .5pt;border-right:solid .5pt;"><span style="font-family:Verdana;font-size:10pt;">Indicates the window width</span></td>
</tr>
<tr>
<td style="padding-left:7px;padding-right:7px;border-top:none;border-left:solid .5pt;border-bottom:solid .5pt;border-right:solid .5pt;"><span style="font-family:Verdana;font-size:10pt;">EXPAND(xy)</span></td>
<td style="padding-left:7px;padding-right:7px;border-top:none;border-left:none;border-bottom:solid .5pt;border-right:solid .5pt;"><span style="font-family:Verdana;font-size:10pt;">Repeat a character field based on delimiters x and y</span></td>
</tr>
<tr>
<td style="padding-left:7px;padding-right:7px;border-top:none;border-left:solid .5pt;border-bottom:solid .5pt;border-right:solid .5pt;"><span style="font-family:Verdana;font-size:10pt;">CMD()</span></td>
<td style="padding-left:7px;padding-right:7px;border-top:none;border-left:none;border-bottom:solid .5pt;border-right:solid .5pt;"><span style="font-family:Verdana;font-size:10pt;">Identifies the panel field (variable name) to be treated as the command field. You can specify that you do not want a command field by using CMD().</span></td>
</tr>
<tr>
<td style="padding-left:7px;padding-right:7px;border-top:none;border-left:solid .5pt;border-bottom:solid .5pt;border-right:solid .5pt;"><span style="font-family:Verdana;font-size:10pt;">LMSG()</span></td>
<td style="padding-left:7px;padding-right:7px;border-top:none;border-left:none;border-bottom:solid .5pt;border-right:solid .5pt;"><span style="font-family:Verdana;font-size:10pt;">Identifies the panel field (variable name) where the long message, if any, is to be placed</span></td>
</tr>
<tr>
<td style="padding-left:7px;padding-right:7px;border-top:none;border-left:solid .5pt;border-bottom:solid .5pt;border-right:solid .5pt;"><span style="font-family:Verdana;font-size:10pt;">SMSG()</span></td>
<td style="padding-left:7px;padding-right:7px;border-top:none;border-left:none;border-bottom:solid .5pt;border-right:solid .5pt;"><span style="font-family:Verdana;font-size:10pt;">Identifies the panel field (variable name) where the short message, if any, is to be placed</span></td>
</tr>
<tr>
<td style="padding-left:7px;padding-right:7px;border-top:none;border-left:solid .5pt;border-bottom:solid .5pt;border-right:solid .5pt;"><span style="font-family:Verdana;font-size:10pt;">WINDOW() </span></td>
<td style="padding-left:7px;padding-right:7px;border-top:none;border-left:none;border-bottom:solid .5pt;border-right:solid .5pt;"><span style="font-family:Verdana;font-size:10pt;">Supplies constant window width and height</span></td>
</tr>
</tbody>
</table>
</div>
<p style="margin-left:18pt;"><span style="font-family:Verdana;font-size:10pt;">Draw the input field in BODY section staring with input attribute character and ending with &#8216;+&#8217; character.<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Verdana;font-size:10pt;">)BODY<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Verdana;font-size:10pt;">ENTER YOUR NAME:_NAME +<br />
</span></p>
<ol>
<li>
<div><span style="font-family:Verdana;font-size:10pt;"><strong>Initialization section</strong> specifies the processing that will occur before the panel is displayed. You usually use this section to define how variables are to be initialized.<br />
</span></div>
<p><span style="font-family:Verdana;font-size:10pt;">The input fields are automatically stored into the corresponding dialog variables immediately following display and prior to processing the )PROC section<br />
</span></li>
</ol>
<p><span style="font-family:Verdana;font-size:10pt;">The INIT section is also used to prepare list of Z variable names.<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;">The Z vars can only be defined in the INIT section<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Verdana;font-size:10pt;">It begins with the )INIT header statement and ends with either the )REINIT, )PROC, )HELP, or )END header statement.<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Verdana;font-size:10pt;text-decoration:underline;">Using Z variables for input field<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Courier New;font-size:10pt;">)ATTR<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Courier New;font-size:10pt;"> _ TYPE(INPUT) INTENS(HIGH)<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Courier New;font-size:10pt;">)BODY<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Courier New;font-size:10pt;">ENTER YOUR NAME:_Z + EMP ID:_Z +<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Courier New;font-size:10pt;">DESIGNATION:_Z +<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Courier New;font-size:10pt;">)INIT<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Courier New;font-size:10pt;">.ZVARS=&#8217;(NAME,EMPID,DESIG)&#8217;<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Courier New;font-size:10pt;">)END<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Verdana;font-size:10pt;">As you can see above, you can use Z variables in the BODY section, and define the variables in the INIT section.<br />
</span></p>
<ol>
<li><span style="font-family:Verdana;font-size:10pt;"><strong>Reinitialization section</strong> specifies the processing that will occur before redisplay of a panel.<br />
</span></li>
</ol>
<p><span style="font-family:Verdana;font-size:10pt;">Processed if the .MSG control variable is nonblank<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Verdana;font-size:10pt;">The Main purpose of this section is to hilite the errors that user has made with different color or by blinking the field before redisplaying the screen.<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Verdana;font-size:10pt;">The difference between the INIT and REINIT section is that the former is executed when the panel is newly loaded into memory while the later is executed when the display panel command is given when the panel is already present in the memory<br />
</span></p>
<ol>
<li>
<div><span style="font-family:Verdana;font-size:10pt;"><strong>Processing section</strong> specifies the processing that will occur after the panel is displayed. You usually use this section to define how variables are verified and translated.<br />
</span></div>
</li>
</ol>
<p><span style="font-family:Verdana;font-size:10pt;">It is ttriggered whenever the user presses an AID / RETURN key.<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;">)PROC<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;">IF (&#38;COUNTRY = &#8216;INDIA&#8217;)<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;"> &#38;POST = &#8216;DOMESTIC&#8217;<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;">)END<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;text-decoration:underline;">Adding IF-ELSE Control logic in the panel<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Verdana;font-size:10pt;">The IF-ELSE statement control depends on the indentation of the IF and ELSE statements. The rules are:<br />
</span></p>
<ol style="margin-left:49pt;">
<li><span style="font-family:Verdana;font-size:10pt;">All statements to the RIGHT of IF statement and before the ELSE statement is executed when the IF condition is TRUE<br />
</span></li>
<li><span style="font-family:Verdana;font-size:10pt;">The ELSE statements should be column aligned with the IF statement<br />
</span></li>
<li><span style="font-family:Verdana;font-size:10pt;">All statements after the ELSE statement and to the right of ELSE statement are executed when the IF condition fails<br />
</span></li>
</ol>
<p><span style="font-family:Verdana;font-size:10pt;text-decoration:underline;">THE VER COMMAND<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Verdana;font-size:10pt;">VER command is used to validate the input field passed through the panel input. And an error message is thrown based on the validation.<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Verdana;font-size:10pt;"><strong>Example:    </strong><br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Verdana;font-size:10pt;">VER (&#38;AGE,LEN,&#8217;=',2) – verifies if the length is of 2 bytes<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Verdana;font-size:10pt;">VER (&#38;NAME,ALPHA) – verifies if the NAME is alphabetic<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Verdana;font-size:10pt;">VER (&#38;AGE,NUM) – verifies if the age is numeric<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Verdana;font-size:10pt;">VER (&#38;EMPSER,NONBLANK,PICT,NNNNNN)<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Verdana;font-size:10pt;">VER (&#38;PHNUM,PICT,NNN-NNNN)<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Verdana;font-size:10pt;">VER (&#38;ALKBLK,RANGE,0,32760)<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;text-decoration:underline;">PFKEY<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Verdana;font-size:10pt;">System Variable <strong>.</strong>PFKEY: This command is used to capture the AID key pressed by the user<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Verdana;font-size:10pt;"><strong>Example:</strong><br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Verdana;font-size:10pt;">)PROC<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Verdana;font-size:10pt;">&#38;KEYPRESS = .PFKEY<br />
</span></p>
<p style="margin-left:18pt;"><span style="font-family:Verdana;font-size:10pt;">)END<br />
</span></p>
<ol>
<li>
<div><span style="font-family:Verdana;font-size:10pt;"><strong>Model section</strong> (required for table display only; not allowed for other types of panels) specifies the format for displaying each row of the table.<br />
</span></div>
<p><span style="font-family:Verdana;font-size:10pt;">Specifies the format in which the columns in the table need to be displayed.<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;text-decoration:underline;">Table<br />
</span></p>
<ol>
<li><span style="font-family:Verdana;font-size:10pt;">TBCREATE Creates a new table and opens it for processing<br />
</span></li>
<li><span style="font-family:Verdana;font-size:10pt;">TBCLOSE Closes a table and saves a permanent copy if the table was opened<br />
</span></li>
<li><span style="font-family:Verdana;font-size:10pt;">TBEND Closes a table without saving<br />
</span></li>
<li><span style="font-family:Verdana;font-size:10pt;">TBERASE Deletes a permanent table from the table output file<br />
</span></li>
<li><span style="font-family:Verdana;font-size:10pt;">TBOPEN Opens an existing permanent table for processing<br />
</span></li>
<li><span style="font-family:Verdana;font-size:10pt;">TBSAVE Saves a permanent copy of a table without closing<br />
</span></li>
</ol>
</li>
<li>
<div><span style="font-family:Verdana;font-size:10pt;"><strong>End section</strong> consists of only the )END statement. ISPF ignores any data that appears on lines following the )END statement. It is a mandatory section.<br />
</span></div>
</li>
</ol>
<p style="margin-left:18pt;"><strong><span style="text-decoration:underline;"><span style="font-family:Verdana;">You might also like to look at:</span></span></strong></p>
<p style="margin-left:18pt;"><strong><a title="REXX – READ, CREATE AND WRITE DATA TO A DATASET" href="http://mainframesf1.wordpress.com/2012/04/03/rexx-read-create-and-write-data-to-a-dataset/">REXX – READ, CREATE AND WRITE DATA TO A DATASET</a></strong></p>
<p style="margin-left:18pt;"><a title="REXX TOOL TO SUBSTITUTE SYMBOLICS IN A PROC" href="http://mainframesf1.wordpress.com/2012/02/03/rexx-tool-to-substitute-symbolics-in-a-proc/">REXX TOOL TO SUBSTITUTE SYMBOLICS IN A PROC</a></p>
<p style="margin-left:18pt;">
]]></content:encoded>
</item>
<item>
<title><![CDATA[REXX – READ, CREATE AND WRITE DATA TO A DATASET]]></title>
<link>http://mainframesf1.wordpress.com/2012/04/03/rexx-read-create-and-write-data-to-a-dataset/</link>
<pubDate>Tue, 03 Apr 2012 11:50:33 +0000</pubDate>
<dc:creator>rajeshar</dc:creator>
<guid>http://mainframesf1.wordpress.com/2012/04/03/rexx-read-create-and-write-data-to-a-dataset/</guid>
<description><![CDATA[REXX – READ, CREATE AND WRITE DATA TO A DATASET Below Step shows us how to assign a dataset to a DDN]]></description>
<content:encoded><![CDATA[<p style="text-align:center;"><span style="font-family:Verdana;text-decoration:underline;"><strong>REXX – READ, CREATE AND WRITE DATA TO A DATASET<br />
</strong></span></p>
<p><span style="font-family:Verdana;font-size:10pt;">Below Step shows us how to assign a dataset to a DDNAME and read it.<br />
</span></p>
<ol>
<li>
<div><span style="font-family:Verdana;font-size:10pt;text-decoration:underline;">Read the input dataset into an array variable<br />
</span></div>
</li>
</ol>
<p><span style="font-family:Verdana;font-size:10pt;">INPUTPS =&#8217;HLQ1.HLQ2.HLQ3.INPUT&#8217;<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;">IF SYSDSN(&#8220;&#8216;&#8221;INPUTPS&#8221;&#8216;&#8221;) /= &#8216;OK&#8217; THEN<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;"> DO<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;"> SAY &#8216;INPUT FILE &#8216; INPUTPS &#8216; DOESNOT EXIST&#8217;<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;"> EXIT(0)<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;"> END<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;">&#8220;ALLOC DD(INP1) DA(&#8216;&#8221;INPUTPS&#8221;&#8216;) SHR REUS&#8221;<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;">&#8220;EXECIO * DISKR INP1 (STEM IN1. FINIS&#8221;<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;">SYSDSN – Checks the availability of the File<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;">ALLOC – Allocates the input file to the DD INP1<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;">EXECIO * DISKR – Reads the input file using the DD name INP1 into the array variable IN1.<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;">Please note that IN1.0 contains the record count of the input file.<br />
</span></p>
<ol>
<li><span style="font-family:Verdana;font-size:10pt;text-decoration:underline;">Creation of the output file<br />
</span></li>
</ol>
<p><span style="font-family:Verdana;font-size:10pt;">ADDRESS TSO<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;">RPTCTL=&#8217;HLQ1.HLQ2.HLQ3.OUTPUT&#8217;<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;">ADDRESS TSO<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;">STATUS = SYSDSN(&#8220;&#8216;&#8221;RPTCTL&#8221;&#8216;&#8221;)<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;">IF STATUS = &#8216;OK&#8217; THEN<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;"> DO<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;"> &#8220;DELETE &#8216;&#8221;RPTCTL&#8221;&#8216;&#8221;<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;"> END<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;">&#8220;ALLOC FI(XXOUT) DA(&#8216;&#8221;RPTCTL&#8221;&#8216;) SHR NEW SPACE(50,20)<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;"> DSORG(PS) RECFM(F,B) LRECL(200) BLKSIZE(30000)&#8221;<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;">DELETE – Deletes the dataset if it is already available<br />
</span></p>
<p style="margin-left:36pt;"><span style="font-family:Verdana;font-size:10pt;">ALLOC – Allocates the file which is assigned to the DD name XXOUT. You can see that all the dataset parameters that define the dataset can be given as provided above.<br />
</span></p>
<ol>
<li><span style="font-family:Verdana;font-size:10pt;text-decoration:underline;">Writing data to output dataset<br />
</span></li>
</ol>
<p><span style="font-family:Verdana;font-size:10pt;">&#8220;EXECIO&#8221; LOT.0 &#8220;DISKW XXOUT (STEM LOT.&#8221;<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;">&#8220;EXECIO 0 DISKW XXOUT (FINIS&#8221;<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;">&#8220;FREE F(XXOUT)&#8221;<br />
</span></p>
<p style="margin-left:36pt;"><span style="font-family:Verdana;font-size:10pt;">The first line writes all the data (Number of lines to be written is present as LOT.0, which specifies the number of array occurrences for the array LOT.) into the DD XXOUT, which is our output file RPTCTL.<br />
</span></p>
<p><span style="font-family:Verdana;font-size:10pt;">The second line is used to mention that the writing is finished.<br />
</span></p>
<p style="margin-left:36pt;"><span style="font-family:Verdana;font-size:10pt;">Once the usage of the file is done, we need to free the DD name, which is done in the third line. This is done so that the DD name can be used for other datasets.</span></p>
<p>You Might also like to look at.</p>
<p><a title="REXX – PANEL Definition" href="http://mainframesf1.wordpress.com/2012/04/03/rexx-panel-definition/">REXX PANEL DEFINITION</a></p>
<p><a title="REXX TOOL TO SUBSTITUTE SYMBOLICS IN A PROC" href="http://mainframesf1.wordpress.com/2012/02/03/rexx-tool-to-substitute-symbolics-in-a-proc/">REXX TOOL TO SUBSTITUTE SYMBOLICS IN A PROC</a></p>
]]></content:encoded>
</item>

</channel>
</rss>
