<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: move (or Eval) between record formats</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/move-or-eval-between-record-formats/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/move-or-eval-between-record-formats/</link>
	<description></description>
	<lastBuildDate>Wed, 19 Jun 2013 01:14:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: bdfgsbw</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/move-or-eval-between-record-formats/#comment-44496</link>
		<dc:creator>bdfgsbw</dc:creator>
		<pubDate>Thu, 11 Aug 2005 12:01:52 +0000</pubDate>
		<guid isPermaLink="false">#comment-44496</guid>
		<description><![CDATA[What error are you getting?

It is possible to move the data in one format to another, but you cannot use the file format name.  The better solution is to use data structures to move the data.   Then in the program, MOVE one data structure to the other.  The only rule you need to follow is to insure the fields within the data structures line up.

Ex1.
D FLDATA        E DS                  EXTNAME(FILE1)
D FLSAVE        E DS                  EXTNAME(FILE1) PREFIX(SV)      
.
.
.
C                   MOVEL     FLDATA        FLSAVE

In the above example, the DS&#039;s have the same format (reference the same file), and as long as the data structures have the same field positioning (definition) as the other, then the logic works.  

Ex2.
D  DS1            DS                 
D  FLD1                   1     35 
D  FLD2                  36     70 
D  FLD3                  71    105 
.
.
D  DS2            DS               
D  FFLD1                  1     35 
D  FFLD2                 36     70 
.
.
C                   MOVEL     DS1           DS2

This will work also.  If the fields in the data structures do not line up, the you run the risk of corrupting the data.

Hope this helps.]]></description>
		<content:encoded><![CDATA[<p>What error are you getting?</p>
<p>It is possible to move the data in one format to another, but you cannot use the file format name.  The better solution is to use data structures to move the data.   Then in the program, MOVE one data structure to the other.  The only rule you need to follow is to insure the fields within the data structures line up.</p>
<p>Ex1.<br />
D FLDATA        E DS                  EXTNAME(FILE1)<br />
D FLSAVE        E DS                  EXTNAME(FILE1) PREFIX(SV)<br />
.<br />
.<br />
.<br />
C                   MOVEL     FLDATA        FLSAVE</p>
<p>In the above example, the DS&#8217;s have the same format (reference the same file), and as long as the data structures have the same field positioning (definition) as the other, then the logic works.  </p>
<p>Ex2.<br />
D  DS1            DS<br />
D  FLD1                   1     35<br />
D  FLD2                  36     70<br />
D  FLD3                  71    105<br />
.<br />
.<br />
D  DS2            DS<br />
D  FFLD1                  1     35<br />
D  FFLD2                 36     70<br />
.<br />
.<br />
C                   MOVEL     DS1           DS2</p>
<p>This will work also.  If the fields in the data structures do not line up, the you run the risk of corrupting the data.</p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pavers</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/move-or-eval-between-record-formats/#comment-44497</link>
		<dc:creator>pavers</dc:creator>
		<pubDate>Thu, 11 Aug 2005 11:57:49 +0000</pubDate>
		<guid isPermaLink="false">#comment-44497</guid>
		<description><![CDATA[Example:

FKLCUSFIL  IF   E         K DISK             
FCAPIHC    UF A E         K DISK   PREFIX(H)

D CUSREC_DS     E DS               EXTNAME(CAPIHC)          
D CAPIHC_DS     E DS               EXTNAME(CAPIHC) Prefix(H)

MOVEL     CUSREC_DS     CAPIHC_DS]]></description>
		<content:encoded><![CDATA[<p>Example:</p>
<p>FKLCUSFIL  IF   E         K DISK<br />
FCAPIHC    UF A E         K DISK   PREFIX(H)</p>
<p>D CUSREC_DS     E DS               EXTNAME(CAPIHC)<br />
D CAPIHC_DS     E DS               EXTNAME(CAPIHC) Prefix(H)</p>
<p>MOVEL     CUSREC_DS     CAPIHC_DS</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/9 queries in 0.012 seconds using memcached
Object Caching 282/285 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-19 01:16:46 -->