<?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: program fails in batch mode, runs fine in windowed mode in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/program-fails-in-batch-mode-runs-fine-in-windowed-mode/m-p/211613#M39164</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, the log already tells you in this sequence:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;informat name_type&amp;nbsp;&amp;nbsp; input &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;You can see the incomplete informat statement followed by the beginning of the next line, which signals the truncation of the input line (SAS also somehow misses the LF and therefore continues the line in the log)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 May 2015 07:24:53 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2015-05-09T07:24:53Z</dc:date>
    <item>
      <title>program fails in batch mode, runs fine in windowed mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/program-fails-in-batch-mode-runs-fine-in-windowed-mode/m-p/211604#M39155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, I am attempting to run a SAS program, that uses a macro, and it's failing in batch mode (which I'm running through a .bat file in Windows). On the same computer, I can open the .SAS file with SAS 9.3 (64 bit) and it runs fine, no error messages at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the error part of the log:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;TSV_231_20150415_1154_ehars_20150131003424425033.tsv&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;X:\ELR\ehars\TSV_231_20150415_1154_ehars_20150131003424425033.tsv&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;eRawi1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOTE: Line generated by the invoked macro "SCANLOOP".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;146&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; last_name$108.; informat first_name$108.; informat middle_name$108.; informat name_type&amp;nbsp;&amp;nbsp; input received_date $ social_security_no $&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __________________&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 85&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 76&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;146&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ! state_no $ patient_identifier $ patient_identifier_type $ last_name $ first_name $ middle_name $ name_type $ address_1 $&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ERROR 85-322: Expecting a format name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;WARNING: The data set WORK.ERAWI1 may be incomplete.&amp;nbsp; When this step was stopped there were 0 observations and 9 variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-------------------------------&lt;/P&gt;&lt;P&gt;Here is the code of the macro I am trying to run.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;-------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let largetable = dirlist;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/* Variable (grouping variable) from table by which to split data */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let groupvar = filename;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%MACRO SCANLOOP(SCANFILE,FIELD1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/* First obtain the number of records */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;DATA _NULL_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;IF 0 THEN SET &amp;amp;SCANFILE NOBS=X;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CALL SYMPUT('RECCOUNT',X);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;STOP;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/* loop from one to number of */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/* records */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%DO I=1 %TO &amp;amp;RECCOUNT;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/* Advance to the Ith record */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;DATA _NULL_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SET &amp;amp;SCANFILE (FIRSTOBS=&amp;amp;I);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/* store the variables */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/* of interest in */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/* macro variables */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CALL SYMPUT('VAR1',&amp;amp;FIELD1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;*CALL SYMPUT('VAR2',&amp;amp;FIELD2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;STOP;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/* now perform the tasks that */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/* wish repeated for each */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/* observation */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%put &amp;amp;var1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let outstring = X:\ELR\ehars\&amp;amp;var1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let newtablename = eRawi&amp;amp;I;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/*proc import datafile="&amp;amp;outstring" out = "&amp;amp;newtablename" */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%put &amp;amp;outstring;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%put &amp;amp;newtablename;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/* 05/19/14 13:47 - use data/infile. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data WORK.&amp;amp;newtablename;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let _EFIERR_ = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;infile "&amp;amp;outstring" delimiter='09'x MISSOVER DSD lrecl=32767 firstobs=2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/* 05/19/14 13:44 - format all as very long */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;informat received_date$108.; informat social_security_no$108.; informat state_no$108.; informat patient_identifier$108.; informat patient_identifier_type$108.; informat last_name$108.; informat first_name$108.; informat middle_name$108.; informat name_type$108.; informat address_1$108.; informat address_2$108.; informat city_name$108.; informat county_name$108.; informat state_cd$108.; informat zip$108.; informat country$108.; informat phone_no$108.; informat race_1$108.; informat race_2$108.; informat ethnicity_1$108.; informat birth_date&amp;nbsp; mmddyy10.; informat sex$108.; informat fac_name$108.; informat fac_type$108.; informat fac_address_1$108.; informat fac_address_2$108.; informat fac_city_name$108.; informat fac_county_name$108.; informat fac_state_cd$108.; informat fac_country$108.; informat fac_zip$108.; informat fac_phone_no$108.; informat prov_name$108.; informat prov_address_1$108.; informat prov_address_2$108.; informat prov_city_name$108.; informat prov_county_name$108.; informat prov_state_cd$108.; informat prov_country$108.; informat prov_zip$108.; informat prov_phone_no$108.; informat collection_date$108.; informat specimen_type$108.; informat lab_test_cd$108.; informat lab_test$108.; informat lab_test_result$108.; informat lab_test_interpretation$108.; informat lab_test_units$108.; informat lab_test_viral_range$108.; informat lab_test_specimen_id$108.; informat lab_test_accession_no$108.; informat specimen_receive_date$108.; informat result_date$108.; informat lab_clia_uid$108.; informat lab_clia_name$108.; informat document_comments$2000.; informat msh_clia_no$108.; informat msh_clia_name$108.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/* 05/19/14 13:44 - format all as text. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;input received_date $ social_security_no $ state_no $ patient_identifier $ patient_identifier_type $ last_name $ first_name $ middle_name $ name_type $ address_1 $ address_2 $ city_name $ county_name $ state_cd $ zip $ country $ phone_no $ race_1 $ race_2 $ ethnicity_1 $ birth_date sex $ fac_name $ fac_type $ fac_address_1 $ fac_address_2 $ fac_city_name $ fac_county_name $ fac_state_cd $ fac_country $ fac_zip $ fac_phone_no $ prov_name $ prov_address_1 $ prov_address_2 $ prov_city_name $ prov_county_name $ prov_state_cd $ prov_country $ prov_zip $ prov_phone_no $ collection_date $ specimen_type $ lab_test_cd $ lab_test $ lab_test_result $ lab_test_interpretation $ lab_test_units $ lab_test_viral_range $ lab_test_specimen_id $ lab_test_accession_no $ specimen_receive_date $ result_date $ lab_clia_uid $ lab_clia_name $ document_comments $ msh_clia_no $ msh_clia_name $;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if _ERROR_ then call symputx('_EFIERR_',1);&amp;nbsp; /* set ERROR detection macro variable */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;_filename = "&amp;amp;var1";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/* 11/18/14 08:42 - add filename */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%END;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%MEND SCANLOOP;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/* Call SCANLOOP */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%SCANLOOP(dirlist,&amp;amp;groupvar);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;-------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Any ideas what could be the problem? Thank you.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 23:01:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/program-fails-in-batch-mode-runs-fine-in-windowed-mode/m-p/211604#M39155</guid>
      <dc:creator>ucdcrush</dc:creator>
      <dc:date>2015-05-07T23:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: program fails in batch mode, runs fine in windowed mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/program-fails-in-batch-mode-runs-fine-in-windowed-mode/m-p/211605#M39156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have an INFORMAT statement without an INFORMAT and a terminating semicolon:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;last_name$108.; informat first_name$108.; informat middle_name$108.;&lt;STRONG&gt; informat name_type&amp;nbsp; &lt;/STRONG&gt; input received_date $ social_security_no $&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 23:15:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/program-fails-in-batch-mode-runs-fine-in-windowed-mode/m-p/211605#M39156</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-05-07T23:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: program fails in batch mode, runs fine in windowed mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/program-fails-in-batch-mode-runs-fine-in-windowed-mode/m-p/211606#M39157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would run this program with the options mprint and symbolgen to attempt to capture all of the code actually generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It almost looks like something is cutting off the text as INFORMAT NAM_TYPE as there is a lot of text between there and the INPUT but it looks like the error is because the code is looking for a format name in the position occupied by social_security_no .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to look at the line length in the code file and see if the submitted code is exceeding line lengths that the SAS processor is expecting for code files. This might occur because of batch defaults.&lt;/P&gt;&lt;P&gt;Does your code have any linefeeds in that block of informat statements? If you have another section of code generating that I would look into making sure the code is a bit prettier. Seeing things like informat social_security_no$108.; makes me a bit uncomfortable. True, the space isn't required for a character format BUT the logic generating something like that fails if you are using an informat like 8. as that would make a differently named variable and miss the actual informat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider writing the generated code to a text file and then including that file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 23:22:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/program-fails-in-batch-mode-runs-fine-in-windowed-mode/m-p/211606#M39157</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-05-07T23:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: program fails in batch mode, runs fine in windowed mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/program-fails-in-batch-mode-runs-fine-in-windowed-mode/m-p/211607#M39158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does your actual code file look like what you pasted into the forum?&amp;nbsp; Because your lines of text are WAAAAAAAAAAAAAAAAY too long.&amp;nbsp; No human could read a line of text that is that long and it looks like SAS can't read it either.&amp;nbsp; It is generally best to restrict lines of code to 75 characters. 1,365 is just little bit too long.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; list;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp; cards4;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RULE:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----+----1----+----2----+----3----+----4----+----5----+----6---&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; informat received_date$108.; informat social_security_no$108.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 64&amp;nbsp; informat state_no$108.; informat patient_identifier$108.; infor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 127&amp;nbsp; mat patient_identifier_type$108.; informat last_name$108.; info&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 190&amp;nbsp; rmat first_name$108.; informat middle_name$108.; informat name_&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 253&amp;nbsp; type$108.; informat address_1$108.; informat address_2$108.; in&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 316&amp;nbsp; format city_name$108.; informat county_name$108.; informat stat&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 379&amp;nbsp; e_cd$108.; informat zip$108.; informat country$108.; informat p&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 442&amp;nbsp; hone_no$108.; informat race_1$108.; informat race_2$108.; infor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 505&amp;nbsp; mat ethnicity_1$108.; informat birth_date&amp;nbsp; mmddyy10.; informat&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 568&amp;nbsp; sex$108.; informat fac_name$108.; informat fac_type$108.; infor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 631&amp;nbsp; mat fac_address_1$108.; informat fac_address_2$108.; informat f&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 694&amp;nbsp; ac_city_name$108.; informat fac_county_name$108.; informat fac_&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 757&amp;nbsp; state_cd$108.; informat fac_country$108.; informat fac_zip$108.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 820&amp;nbsp; ; informat fac_phone_no$108.; informat prov_name$108.; informat&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 883&amp;nbsp;&amp;nbsp; prov_address_1$108.; informat prov_address_2$108.; informat pr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 946&amp;nbsp; ov_city_name$108.; informat prov_county_name$108.; informat pro&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1009&amp;nbsp; v_state_cd$108.; informat prov_country$108.; informat prov_zip$&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RULE:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----+----1----+----2----+----3----+----4----+----5----+----6---&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1072&amp;nbsp; 108.; informat prov_phone_no$108.; informat collection_date$108&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1135&amp;nbsp; .; informat specimen_type$108.; informat lab_test_cd$108.; info&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1198&amp;nbsp; rmat lab_test$108.; informat lab_test_result$108.; informat lab&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1261&amp;nbsp; _test_interpretation$108.; informat lab_test_units$108.; inform&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1324&amp;nbsp; at lab_test_viral_range$108.; informat lab_test_specimen_id$108&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1387&amp;nbsp; .; informat lab_test_accession_no$108.; informat specimen_recei&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1450&amp;nbsp; ve_date$108.; informat result_date$108.; informat lab_clia_uid$&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1513&amp;nbsp; 108.; informat lab_clia_name$108.; informat document_comments$2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1576&amp;nbsp; 000.; informat msh_clia_no$108.; informat msh_clia_name$108.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOTE: DATA statement used (Total process time):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.04 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.03 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;6&amp;nbsp;&amp;nbsp;&amp;nbsp; ;;;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 23:48:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/program-fails-in-batch-mode-runs-fine-in-windowed-mode/m-p/211607#M39158</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-05-07T23:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: program fails in batch mode, runs fine in windowed mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/program-fails-in-batch-mode-runs-fine-in-windowed-mode/m-p/211608#M39159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/5/953.html" title="http://support.sas.com/kb/5/953.html"&gt;http://support.sas.com/kb/5/953.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Your input lines are MUCH (and I mean M - U - C - H) too long. They most probably are truncated the moment SAS reads the text file.&lt;/P&gt;&lt;P&gt;Big hint: if preparing SAS programs for batch mode, keep any line length below 80. Makes the code readable even when all you have is a PuTTY connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another hint: pack your informats into a statement like:&lt;/P&gt;&lt;P&gt;informat&lt;/P&gt;&lt;P&gt;&amp;nbsp; var1 $format1.&lt;/P&gt;&lt;P&gt;&amp;nbsp; var2 $format2.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Do the same with your input statement (each variable on its own line).&lt;/P&gt;&lt;P&gt;And once you have defined a variable as character through the informat, the $ in the input statement is superfluous.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 08:16:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/program-fails-in-batch-mode-runs-fine-in-windowed-mode/m-p/211608#M39159</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-05-08T08:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: program fails in batch mode, runs fine in windowed mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/program-fails-in-batch-mode-runs-fine-in-windowed-mode/m-p/211609#M39160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, zero code formatting or good programming practices = TL;DR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 08:19:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/program-fails-in-batch-mode-runs-fine-in-windowed-mode/m-p/211609#M39160</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-05-08T08:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: program fails in batch mode, runs fine in windowed mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/program-fails-in-batch-mode-runs-fine-in-windowed-mode/m-p/211610#M39161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Further to Kurt's link, there is a default record length on batch files of 256 characters that is probably the cause of your error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/kb/15/883.html" title="http://support.sas.com/kb/15/883.html"&gt;http://support.sas.com/kb/15/883.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 09:06:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/program-fails-in-batch-mode-runs-fine-in-windowed-mode/m-p/211610#M39161</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-05-08T09:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: program fails in batch mode, runs fine in windowed mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/program-fails-in-batch-mode-runs-fine-in-windowed-mode/m-p/211611#M39162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS can handle sources that are way much tooo loooong for humans. The requirement is that all settings/options for record lengths should not introduce some restriction.&lt;/P&gt;&lt;P&gt;Could be: &lt;A href="http://support.sas.com/documentation/cdl/en/hosto390/67326/HTML/default/viewer.htm#n1q65gwxvgronsn1xptay3f2rska.htm" title="http://support.sas.com/documentation/cdl/en/hosto390/67326/HTML/default/viewer.htm#n1q65gwxvgronsn1xptay3f2rska.htm"&gt;SAS(R) 9.4 Companion for z/OS, Third Edition&lt;/A&gt;&amp;nbsp; (cardimage)&amp;nbsp; or lrecl &lt;A href="http://support.sas.com/documentation/cdl/en/lesysoptsref/64892/HTML/default/viewer.htm#n1li19l98i6929n1981oqr3wq46u.htm" title="http://support.sas.com/documentation/cdl/en/lesysoptsref/64892/HTML/default/viewer.htm#n1li19l98i6929n1981oqr3wq46u.htm"&gt;SAS(R) 9.3 System Options: Reference, Second Edition&lt;/A&gt; or &lt;A href="http://support.sas.com/documentation/cdl/en/lesysoptsref/64892/HTML/default/viewer.htm#p0z0a5lomx2cl7n1nefjm5mnspwo.htm" title="http://support.sas.com/documentation/cdl/en/lesysoptsref/64892/HTML/default/viewer.htm#p0z0a5lomx2cl7n1nefjm5mnspwo.htm"&gt;SAS(R) 9.3 System Options: Reference, Second Edition&lt;/A&gt; &lt;/P&gt;&lt;P&gt;The first step is verifying all options are the same in interactive en batch approach. better almost the same as some values are switching by default&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 14:00:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/program-fails-in-batch-mode-runs-fine-in-windowed-mode/m-p/211611#M39162</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-05-08T14:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: program fails in batch mode, runs fine in windowed mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/program-fails-in-batch-mode-runs-fine-in-windowed-mode/m-p/211612#M39163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the helpful replies! It did turn out to be the line length. I think it would be great if a clear message was provided about it (e.g. line may have been truncated) but I'm glad it's fixed either way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 16:21:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/program-fails-in-batch-mode-runs-fine-in-windowed-mode/m-p/211612#M39163</guid>
      <dc:creator>ucdcrush</dc:creator>
      <dc:date>2015-05-08T16:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: program fails in batch mode, runs fine in windowed mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/program-fails-in-batch-mode-runs-fine-in-windowed-mode/m-p/211613#M39164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, the log already tells you in this sequence:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;informat name_type&amp;nbsp;&amp;nbsp; input &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;You can see the incomplete informat statement followed by the beginning of the next line, which signals the truncation of the input line (SAS also somehow misses the LF and therefore continues the line in the log)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2015 07:24:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/program-fails-in-batch-mode-runs-fine-in-windowed-mode/m-p/211613#M39164</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-05-09T07:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: program fails in batch mode, runs fine in windowed mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/program-fails-in-batch-mode-runs-fine-in-windowed-mode/m-p/354976#M83113</link>
      <description>HI - I *might* be dealing with an issue like this; new to SAS. This was working in an older client-only environment, and we've moved to client-server, where we now fail despite being able to run in EG. You mention "batch defaults" in your response. Could you expound on that, e.g. where these are located, because I'm hoping it's something along those lines for us. Thanks!</description>
      <pubDate>Mon, 01 May 2017 16:38:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/program-fails-in-batch-mode-runs-fine-in-windowed-mode/m-p/354976#M83113</guid>
      <dc:creator>JohnJPS</dc:creator>
      <dc:date>2017-05-01T16:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: program fails in batch mode, runs fine in windowed mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/program-fails-in-batch-mode-runs-fine-in-windowed-mode/m-p/355001#M83128</link>
      <description>Yep.  I think this is poor design on SAS' part.  Why should there be a limit on the number of characters in a line?  This is especially true given that the IDE doesn't prevent you from exceeding this limit.</description>
      <pubDate>Mon, 01 May 2017 18:07:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/program-fails-in-batch-mode-runs-fine-in-windowed-mode/m-p/355001#M83128</guid>
      <dc:creator>statistician13</dc:creator>
      <dc:date>2017-05-01T18:07:29Z</dc:date>
    </item>
  </channel>
</rss>

