<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Moving the flatfile data to infile and file parameters in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Moving-the-flatfile-data-to-infile-and-file-parameters/m-p/69786#M20076</link>
    <description>My input flat file consist of data &lt;BR /&gt;
&lt;BR /&gt;
     store   modelid     &lt;BR /&gt;
  ------------------     &lt;BR /&gt;
1      4216      6952     &lt;BR /&gt;
 2     6054      6952     &lt;BR /&gt;
  3    6139      6139     &lt;BR /&gt;
   4   6215      6952     &lt;BR /&gt;
   5   6240      6240     &lt;BR /&gt;
    6  6332      6332     &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
My concern is  I want to move the store and the model id from the flat file to the below code .In infile and the file statement the data should move like a loop which satisfy my requirement.Could you help me in this&lt;BR /&gt;
&lt;BR /&gt;
data output;                      &lt;BR /&gt;
infile'xo94.control.userview(“srgm”modelid)';  &lt;BR /&gt;
input;                            &lt;BR /&gt;
file'xo94.control.userview(“srgm”store)';  &lt;BR /&gt;
put _infile_;                     &lt;BR /&gt;
run;</description>
    <pubDate>Fri, 03 Sep 2010 14:44:16 GMT</pubDate>
    <dc:creator>Sivanandam</dc:creator>
    <dc:date>2010-09-03T14:44:16Z</dc:date>
    <item>
      <title>Moving the flatfile data to infile and file parameters</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-the-flatfile-data-to-infile-and-file-parameters/m-p/69786#M20076</link>
      <description>My input flat file consist of data &lt;BR /&gt;
&lt;BR /&gt;
     store   modelid     &lt;BR /&gt;
  ------------------     &lt;BR /&gt;
1      4216      6952     &lt;BR /&gt;
 2     6054      6952     &lt;BR /&gt;
  3    6139      6139     &lt;BR /&gt;
   4   6215      6952     &lt;BR /&gt;
   5   6240      6240     &lt;BR /&gt;
    6  6332      6332     &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
My concern is  I want to move the store and the model id from the flat file to the below code .In infile and the file statement the data should move like a loop which satisfy my requirement.Could you help me in this&lt;BR /&gt;
&lt;BR /&gt;
data output;                      &lt;BR /&gt;
infile'xo94.control.userview(“srgm”modelid)';  &lt;BR /&gt;
input;                            &lt;BR /&gt;
file'xo94.control.userview(“srgm”store)';  &lt;BR /&gt;
put _infile_;                     &lt;BR /&gt;
run;</description>
      <pubDate>Fri, 03 Sep 2010 14:44:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-the-flatfile-data-to-infile-and-file-parameters/m-p/69786#M20076</guid>
      <dc:creator>Sivanandam</dc:creator>
      <dc:date>2010-09-03T14:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Moving the flatfile data to infile and file parameters</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-the-flatfile-data-to-infile-and-file-parameters/m-p/69787#M20077</link>
      <description>Hi:&lt;BR /&gt;
  I suggest that you read a bit more about how the DATA step operates. The DATA step operates with implicit loop control. Generally, unless you alter the default behavior, the DATA step will loop one time for every observation that you read with a SET statement or an INFILE statement ("raw" data line).&lt;BR /&gt;
 &lt;BR /&gt;
I suggest you read this entire section of the doc:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#/documentation/cdl/en/lrcon/62955/HTML/default/a001281588.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#/documentation/cdl/en/lrcon/62955/HTML/default/a001281588.htm&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
and pay particular attention to the topics entitled:&lt;BR /&gt;
"Flow of Action" and "What Causes a DATA Step to Stop Executing" and "Processing a DATA Step: A Walkthrough"&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 03 Sep 2010 14:57:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-the-flatfile-data-to-infile-and-file-parameters/m-p/69787#M20077</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-09-03T14:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Moving the flatfile data to infile and file parameters</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-the-flatfile-data-to-infile-and-file-parameters/m-p/69788#M20078</link>
      <description>Guessing your SAS operating system is z/OS (IBM mainframe) and you want to stow a unique PDS/PDSE library member, based on data content.  Review using the FILEVAR= keyword on the FILE statement.&lt;BR /&gt;
&lt;BR /&gt;
For future posts, it's best to share as much info about your SAS environment, with version, operating system, local or remote SAS installed/accessed, new code / program or existing, and as you have done, share all code, though preferably as a pasted content from your SAS-generated log output.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search arguments, this topic/post:&lt;BR /&gt;
&lt;BR /&gt;
data step filevar site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
data step file statement filevar write pds member site:sas.com

Message was edited by: sbb</description>
      <pubDate>Fri, 03 Sep 2010 17:50:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-the-flatfile-data-to-infile-and-file-parameters/m-p/69788#M20078</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-09-03T17:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Moving the flatfile data to infile and file parameters</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-the-flatfile-data-to-infile-and-file-parameters/m-p/69789#M20079</link>
      <description>Hi Scott,&lt;BR /&gt;
Thanks,File var  statement satisfied half of my requirement and  am working in that ..&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Siva.</description>
      <pubDate>Sat, 04 Sep 2010 10:22:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-the-flatfile-data-to-infile-and-file-parameters/m-p/69789#M20079</guid>
      <dc:creator>Sivanandam</dc:creator>
      <dc:date>2010-09-04T10:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Moving the flatfile data to infile and file parameters</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-the-flatfile-data-to-infile-and-file-parameters/m-p/69790#M20080</link>
      <description>Is it possible to create the PDS memeber in sas..i need to get the member name  from the flat file and need to create the PDS member of that name</description>
      <pubDate>Mon, 06 Sep 2010 12:58:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-the-flatfile-data-to-infile-and-file-parameters/m-p/69790#M20080</guid>
      <dc:creator>Sivanandam</dc:creator>
      <dc:date>2010-09-06T12:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Moving the flatfile data to infile and file parameters</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-the-flatfile-data-to-infile-and-file-parameters/m-p/69791#M20081</link>
      <description>Is it possible to create the PDS memeber in sas..i need to get the member name from the flat file and need to create the PDS member of that name</description>
      <pubDate>Mon, 06 Sep 2010 13:41:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-the-flatfile-data-to-infile-and-file-parameters/m-p/69791#M20081</guid>
      <dc:creator>Sivanandam</dc:creator>
      <dc:date>2010-09-06T13:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Moving the flatfile data to infile and file parameters</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-the-flatfile-data-to-infile-and-file-parameters/m-p/69792#M20082</link>
      <description>Yes, as I conveyed in my prior post-reply.  Check the SAS support website resources as well as the SAS z/OS companion documentation - the use of the FILEVAR= parameter is your key point to investigate.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search arguments, this topic/post:&lt;BR /&gt;
&lt;BR /&gt;
data step filevar site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
data step file statement filevar write pds member site:sas.com</description>
      <pubDate>Mon, 06 Sep 2010 14:18:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-the-flatfile-data-to-infile-and-file-parameters/m-p/69792#M20082</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-09-06T14:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Moving the flatfile data to infile and file parameters</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Moving-the-flatfile-data-to-infile-and-file-parameters/m-p/69793#M20083</link>
      <description>Hi Scott,&lt;BR /&gt;
Apologise, i could not find the code ... is it possible to post the code for my requirement.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Siva.</description>
      <pubDate>Tue, 07 Sep 2010 12:18:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Moving-the-flatfile-data-to-infile-and-file-parameters/m-p/69793#M20083</guid>
      <dc:creator>Sivanandam</dc:creator>
      <dc:date>2010-09-07T12:18:06Z</dc:date>
    </item>
  </channel>
</rss>

