<?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 Re: Read VSAM KSDS and create a SAS Dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Read-VSAM-KSDS-and-create-a-SAS-Dataset/m-p/299549#M63198</link>
    <description>&lt;P&gt;The key is this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;THE MINIMUM RECORD LENGTH WAS 66.&lt;/P&gt;
&lt;P&gt;THE MAXIMUM RECORD LENGTH WAS 810.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This shows that the infile has variable-length records, all of which are shorter than your informat. In this case, SAS sets the variable to missing.&lt;/P&gt;
&lt;P&gt;Use the truncover option in the infile statement, so SAS fills the variable with all available data instead.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Sep 2016 13:56:08 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-09-20T13:56:08Z</dc:date>
    <item>
      <title>Read VSAM KSDS and create a SAS Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-VSAM-KSDS-and-create-a-SAS-Dataset/m-p/299544#M63197</link>
      <description>&lt;P&gt;Trying to read in a mainframe VSAM KSDS dataset and create a SAS dataset for further processing.&amp;nbsp; Job runs and shows that it created observations, but all of them are empty.&amp;nbsp; I am trying to put the entire record in 1 large variable.&amp;nbsp; See code below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FILENAME ASGIN 'GLOBAL.VIEWVDR.PROD.VIEWJCL.INDIST1' ;&lt;/P&gt;
&lt;P&gt;DATA ASGOUT.INDIST1 ;&lt;/P&gt;
&lt;P&gt;INFILE ASGIN VSAM ;&lt;/P&gt;
&lt;P&gt;INPUT&lt;/P&gt;
&lt;P&gt;@01 DATA $CHAR1060. ;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/46433"&gt;@01&lt;/a&gt; DATA $CHAR1060. ;&lt;/P&gt;
&lt;P&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;The vsam file has a record length of 1060.&amp;nbsp; Output from the job listed below:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1 FILENAME ASGIN 'GLOBAL.VIEWVDR.PROD.VIEWJCL.INDIST1' ;&lt;/P&gt;
&lt;P&gt;2 DATA ASGOUT.INDIST1 ;&lt;/P&gt;
&lt;P&gt;3 INFILE ASGIN VSAM ;&lt;/P&gt;
&lt;P&gt;4 INPUT&lt;/P&gt;
&lt;P&gt;5 @01 DATA $CHAR1060. ;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/46433"&gt;@01&lt;/a&gt; DATA $CHAR1060. ;&lt;/P&gt;
&lt;P&gt;6 RUN;&lt;/P&gt;
&lt;P&gt;NOTE: THE INFILE ASGIN IS:&lt;/P&gt;
&lt;P&gt;DSNAME=GLOBAL.VIEWVDR.PROD.VIEWJCL.INDIST1,&lt;/P&gt;
&lt;P&gt;VOLUME=ASG603,DISP=SHR,UNIT=3390,TYPE=INDEXED,&lt;/P&gt;
&lt;P&gt;SPANNED=NO,RECORDSIZE=(.,1060),AMP=('AMORG'),&lt;/P&gt;
&lt;P&gt;RECORDS=29597,KEYS=(60 0)&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;NOTE: 29597 RECORDS WERE READ FROM THE INFILE ASGIN&lt;/STRONG&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;THE MINIMUM RECORD LENGTH WAS 66.&lt;/P&gt;
&lt;P&gt;THE MAXIMUM RECORD LENGTH WAS 810.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;NOTE: THE DATA SET ASGOUT.INDIST1 HAS 29597 OBSERVATIONS AND 1 VARIABLES&lt;/STRONG&gt;&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;NOTE: COMPRESSING DATA SET ASGOUT.INDIST1 DECREASED SIZE BY 98.25 PERCENT.&lt;/P&gt;
&lt;P&gt;COMPRESSED IS 10 PAGES; UN-COMPRESSED WOULD REQUIRE 570 PAGES.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas on what is wrong with this??&amp;nbsp; I ran an IDCAMS to verify there is data in the vsam file, and show data for all records.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanx,&lt;/P&gt;
&lt;P&gt;Jim Glover&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 13:51:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-VSAM-KSDS-and-create-a-SAS-Dataset/m-p/299544#M63197</guid>
      <dc:creator>Gloveman71</dc:creator>
      <dc:date>2016-09-20T13:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Read VSAM KSDS and create a SAS Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-VSAM-KSDS-and-create-a-SAS-Dataset/m-p/299549#M63198</link>
      <description>&lt;P&gt;The key is this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;THE MINIMUM RECORD LENGTH WAS 66.&lt;/P&gt;
&lt;P&gt;THE MAXIMUM RECORD LENGTH WAS 810.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This shows that the infile has variable-length records, all of which are shorter than your informat. In this case, SAS sets the variable to missing.&lt;/P&gt;
&lt;P&gt;Use the truncover option in the infile statement, so SAS fills the variable with all available data instead.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 13:56:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-VSAM-KSDS-and-create-a-SAS-Dataset/m-p/299549#M63198</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-09-20T13:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Read VSAM KSDS and create a SAS Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-VSAM-KSDS-and-create-a-SAS-Dataset/m-p/299599#M63213</link>
      <description>&lt;P&gt;Looks like it worked great,&amp;nbsp; Thanx for the assist!!!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim Glover&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 16:27:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-VSAM-KSDS-and-create-a-SAS-Dataset/m-p/299599#M63213</guid>
      <dc:creator>Gloveman71</dc:creator>
      <dc:date>2016-09-20T16:27:34Z</dc:date>
    </item>
  </channel>
</rss>

