 




<?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>IT Answers &#187; LRECL</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/lrecl/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Mon, 20 May 2013 00:58:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Numbers of records in flat file without opening it?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/numbers-of-records-in-flat-file-without-opening-it/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/numbers-of-records-in-flat-file-without-opening-it/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 05:59:32 +0000</pubDate>
		<dc:creator>K1908</dc:creator>
				<category><![CDATA[BLKSIZE]]></category>
		<category><![CDATA[Flat files]]></category>
		<category><![CDATA[LRECL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Can we find the number of records in the files using the parameters Space used , Space allocated, LRECL, BLKSIZE in mainframe or are any other parameters required. I have to find the no of records without opening the file or even accessing it. Is it possible.]]></description>
				<content:encoded><![CDATA[<p>Can we find the number of records in the files using the  parameters Space used , Space allocated, LRECL, BLKSIZE  in mainframe or are any other parameters  required. I have to find the no of records without opening the file or even accessing it. Is it possible.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/numbers-of-records-in-flat-file-without-opening-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Does anybody know whether it is possible to overrride LRECL for a variable input file, dynamically allocated in COBOL via &#8220;setenv&#8221; or not?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/does-anybody-know-whether-it-is-possible-to-overrride-lrecl-for-a-variable-input-file-dynamically-allocated-in-cobol-via-setenv-or-not/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/does-anybody-know-whether-it-is-possible-to-overrride-lrecl-for-a-variable-input-file-dynamically-allocated-in-cobol-via-setenv-or-not/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 16:51:26 +0000</pubDate>
		<dc:creator>Hullu</dc:creator>
				<category><![CDATA[COBOL]]></category>
		<category><![CDATA[LRECL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Does anybody know whether it is possible to overrride LRECL for a variable input file, dynamically allocated in COBOL via &#8220;setenv&#8221; or not? Here is why: I have been reading an old thread in Tek Tips from 2004(thread209-691941: How to Input Variable Length Record File)which illustrated how to override LRECL of a variable input file [...]]]></description>
				<content:encoded><![CDATA[<p>Does anybody know whether it is possible to overrride LRECL for a variable input file, dynamically allocated in COBOL via &#8220;setenv&#8221; or not? </p>
<p>Here is why: </p>
<p>I have been reading an old thread in Tek Tips from 2004(thread209-691941: How to Input Variable Length Record File)which illustrated how to override LRECL of a variable input file in JCL so that it matched the COBOL FD record size, and thus avoided IGZ0201W error. It works great. </p>
<p>However I have not been able to override LRECL when allocating the same variable file dynamically. I get IGZ0201W, which indicates the override was ignored (as attached). As you may know, dynamic file allocation is relatively new in z/OS COBOL. It is done via call &#8220;setenv&#8221;. It is mentioned in COBOL Programming Guide, and explained with some examples in an IBM presentation by Tom Ross (which shows up when you search for COBOL and setenv from most search engines). </p>
<p>Does anybody know whether it is possible to overrride LRECL for a variable file, dynamically allocated in COBOL via &#8220;setenv&#8221; or not? </p>
<p>I am enclosing further details. </p>
<p>Thanks in advance<br />
Hullu </p>
<p>FD DYN-VAR-FILE<br />
RECORDING MODE V<br />
BLOCK CONTAINS 0<br />
RECORD IS VARYING IN SIZE<br />
DEPENDING ON WS-VAR-REC-SIZE.<br />
01 REMOTE-RECORD-V.<br />
05 FILLER OCCURS 1 TO 80<br />
DEPENDING ON WS-VAR-REC-SIZE PIC X. </p>
<p>01 WS-VAR-REC-SIZE PIC 9(4) COMP-5. </p>
<p>MOVE z&#8217;DYNFILE&#8217; to ENV-NAME </p>
<p>MOVE 1 TO ENV-OVERWRITE<br />
MOVE SPACES TO ENV-VALUE<br />
STRING &#8216;DSN(&#8216; INPUT-FILE DELIMITED BY SPACE<br />
&#8216;) SHR REUSE LRECL(84)&#8217; DELIMITED BY SIZE<br />
INTO ENV-VALUE<br />
display &#8216;env-value&#8217; env-value </p>
<p>CALL &#8220;setenv&#8221; USING ENV-NAME, ENV-VALUE, ENV-OVERWRITE </p>
<p>OPEN INPUT DYN-VAR-FILE </p>
<p>gets error: </p>
<p>env-valueDSN(GIRHU01.P095.RMT.RL200) SHR REUSE LRECL(84)<br />
IGZ0201W A file attribute mismatch was detected. File DYN-VAR-FILE in program PPPP had a record length of 84 and the file specified in the ASSIGN clause had a record length of 200. </p>
<p>Input file&#8217;s allocation is RECFM=VB, RECLEN=200. This program needs to process variable files with different record length. Only the first 80 characters are used by this program. This is why I need to override to 84 (80 plus 4). </p>
<p>As I mentioned before, the same file works in a version of the same prigram which does not use dynamic allocation, when I override LRECL via JCL as follows:<br />
//DYNFILE DD DSN=inputfile,DISP=SHR,DCB=(LRECL=84) </p>
<p>It is the dynamic allocation which does not seem to accept the LRECL override. I also tried with commas in ENV-VALUE, eg.<br />
STRING &#8216;DSN(&#8216; INPUT-FILE DELIMITED BY SPACE<br />
&#8216;) SHR,REUSE,LRECL(84)&#8217; DELIMITED BY SIZE<br />
INTO ENV-VALUE </p>
<p>It has the same error also.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/does-anybody-know-whether-it-is-possible-to-overrride-lrecl-for-a-variable-input-file-dynamically-allocated-in-cobol-via-setenv-or-not/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/14 queries in 0.022 seconds using memcached
Object Caching 377/394 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-20 04:13:46 -->