<?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 Reading mainframe print and searching for specific infomation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-mainframe-print-and-searching-for-specific-infomation/m-p/701081#M214643</link>
    <description>&lt;P&gt;I have not done this is a long time with sas, I use to have mainframe examples on reading mainframe print line and&amp;nbsp; search for a string like 'load module' then i know I need to get the next 45 characters which is dataset name and member and them amode and rmode information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 23 Nov 2020 21:54:11 GMT</pubDate>
    <dc:creator>DavidLawrence</dc:creator>
    <dc:date>2020-11-23T21:54:11Z</dc:date>
    <item>
      <title>Reading mainframe print and searching for specific infomation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-mainframe-print-and-searching-for-specific-infomation/m-p/701081#M214643</link>
      <description>&lt;P&gt;I have not done this is a long time with sas, I use to have mainframe examples on reading mainframe print line and&amp;nbsp; search for a string like 'load module' then i know I need to get the next 45 characters which is dataset name and member and them amode and rmode information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 21:54:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-mainframe-print-and-searching-for-specific-infomation/m-p/701081#M214643</guid>
      <dc:creator>DavidLawrence</dc:creator>
      <dc:date>2020-11-23T21:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Reading mainframe print and searching for specific infomation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-mainframe-print-and-searching-for-specific-infomation/m-p/701087#M214647</link>
      <description>&lt;P&gt;Easy enough. Just use the trailing&amp;nbsp;@ symbol on your INPUT statement to hold that data row for reading further. Just need to know where in the input record 'load module' is located:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input @1 string $11. @;
if string = 'load module' then input @12 string2 $45.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 22:02:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-mainframe-print-and-searching-for-specific-infomation/m-p/701087#M214647</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-11-23T22:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Reading mainframe print and searching for specific infomation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-mainframe-print-and-searching-for-specific-infomation/m-p/701098#M214654</link>
      <description>&lt;P&gt;If the information may not be at the start of the string perhaps the input @?&lt;/P&gt;
&lt;P&gt;The first input @ is just to read the line of data into the input buffer variable _infile_. Then the value can be searched for information such as with the INDEX function (&amp;gt;0 is just a check for "is present"). The Input @"load module" then finds the position of the text "load module" and starts reading afterward for the number of characters in the format following string (I used 15 as too lazy to type longer example text and datalines sometimes gets picky about length of lines)&lt;/P&gt;
&lt;PRE&gt;data example;
   infile datalines truncover;
   input @;
   if index(_infile_,"load module")&amp;gt;0 then do;
      input @"load module" string $15.;
   end;
   else input;

datalines;
Some sort of text that might contain load module followed by something else
other text not of particular interest or needs other read statement
;
&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Nov 2020 22:34:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-mainframe-print-and-searching-for-specific-infomation/m-p/701098#M214654</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-23T22:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reading mainframe print and searching for specific infomation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-mainframe-print-and-searching-for-specific-infomation/m-p/701300#M214737</link>
      <description>&lt;P&gt;Thanks it has been 10 years since I coded sas or MXG.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 17:59:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-mainframe-print-and-searching-for-specific-infomation/m-p/701300#M214737</guid>
      <dc:creator>DavidLawrence</dc:creator>
      <dc:date>2020-11-24T17:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Reading mainframe print and searching for specific infomation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-mainframe-print-and-searching-for-specific-infomation/m-p/701301#M214738</link>
      <description>Thanks</description>
      <pubDate>Tue, 24 Nov 2020 18:00:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-mainframe-print-and-searching-for-specific-infomation/m-p/701301#M214738</guid>
      <dc:creator>DavidLawrence</dc:creator>
      <dc:date>2020-11-24T18:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Reading mainframe print and searching for specific infomation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-mainframe-print-and-searching-for-specific-infomation/m-p/701355#M214761</link>
      <description>&lt;P&gt;Sorry for another question. it has been 10 years since i did SAS and MXG.&lt;BR /&gt;The report I am reading has information on 2 lines that I want to report on.&lt;BR /&gt;How do I do that with SAS, read 1 line get some info then read the next line they output what I had found.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 20:30:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-mainframe-print-and-searching-for-specific-infomation/m-p/701355#M214761</guid>
      <dc:creator>DavidLawrence</dc:creator>
      <dc:date>2020-11-24T20:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Reading mainframe print and searching for specific infomation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-mainframe-print-and-searching-for-specific-infomation/m-p/701393#M214780</link>
      <description>&lt;P&gt;This is my input from Load Module analyzer&lt;BR /&gt;I want the dataset, then read till i get the cobol version, etc, else DROP&lt;BR /&gt;Load Module S24028.SRCCOMN.PRODA.LOAD.DLN(CONVBDGA) AMODE(31),RMODE(ANY)&lt;BR /&gt;&lt;BR /&gt;Sg Offset Len/Ent Program-ID Trn-Date Program-Description&lt;BR /&gt;0 1348 5655G5300 2007/03/28 Enterprise COBOL for z/OS and OS/390&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 22:49:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-mainframe-print-and-searching-for-specific-infomation/m-p/701393#M214780</guid>
      <dc:creator>DavidLawrence</dc:creator>
      <dc:date>2020-11-24T22:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reading mainframe print and searching for specific infomation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-mainframe-print-and-searching-for-specific-infomation/m-p/702109#M215041</link>
      <description>&lt;P&gt;Help please I did the following and it finds nothing, what am I doing wrong ?&lt;/P&gt;&lt;P&gt;The input is a VBA file&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidLawrence_1-1606507646749.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52052i38A1E8FFC4D70FA3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidLawrence_1-1606507646749.png" alt="DavidLawrence_1-1606507646749.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidLawrence_0-1606507618768.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52051iB9F1FA224E2AB02C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidLawrence_0-1606507618768.png" alt="DavidLawrence_0-1606507618768.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 20:07:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-mainframe-print-and-searching-for-specific-infomation/m-p/702109#M215041</guid>
      <dc:creator>DavidLawrence</dc:creator>
      <dc:date>2020-11-27T20:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reading mainframe print and searching for specific infomation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-mainframe-print-and-searching-for-specific-infomation/m-p/702115#M215043</link>
      <description>&lt;P&gt;Help Please&amp;nbsp; this is the format of the file I am reading any my code below, it does not output anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidLawrence_1-1606509494696.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52054iD332F1206548603F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidLawrence_1-1606509494696.png" alt="DavidLawrence_1-1606509494696.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidLawrence_0-1606509472141.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52053i38944C574C175D9B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidLawrence_0-1606509472141.png" alt="DavidLawrence_0-1606509472141.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 20:38:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-mainframe-print-and-searching-for-specific-infomation/m-p/702115#M215043</guid>
      <dc:creator>DavidLawrence</dc:creator>
      <dc:date>2020-11-27T20:38:25Z</dc:date>
    </item>
  </channel>
</rss>

