<?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: LINE and COLUMN cannot be determined.error in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/LINE-and-COLUMN-cannot-be-determined-error/m-p/237894#M14818</link>
    <description>I hate Line/Spool errors because they're hard to debug.&lt;BR /&gt;I had one last night in SAS UE and it was some weird copy/paste issue and I had to retype the code in and then it worked fine. &lt;BR /&gt;&lt;BR /&gt;I can't see anything wrong with your code, someone else may. However, my solution in this type of situation is binary testing. Remove half the code and run. If no bug, put the other half of the code in and run - error should be in that section.  Repeat until bug is isolated.  AKA guess and test &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
    <pubDate>Fri, 04 Dec 2015 20:59:32 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-12-04T20:59:32Z</dc:date>
    <item>
      <title>LINE and COLUMN cannot be determined.error</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/LINE-and-COLUMN-cannot-be-determined-error/m-p/237886#M14814</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro create_pdf_new2;


proc sql;
	create table capture as
	select *
	from capture
	where qualnew is not missing 
	and complete is not missing 
	and enrollednew is not missing
	and invalidphone is not missing
	and unabletoreach is not missing
	and declined is not missing
	and claimsnew is not missing
	and providernew is not missing
	and externalnew is not missing
	and selfreferralnew is not missing
	and othernew is not missing
;
run;

ods escapechar="^" ;
ods pdf file=&amp;amp;output_pdf. notoc compress = 9 ; *STARTPAGE=NEVER ;

Ods pdf text = "^{style  [just=L   font_face='helvetica' font_style=italic font_size=11pt font_weight=bold]Maternity Program}";
Ods pdf text = "^{style  [just=L   font_face='helvetica' font_style=roman font_size=8pt ]&amp;amp;timeframe.}";

/********************************** Program Waterfall ************************************/
ods layout absolute;

Ods pdf text="^S={just=l color=black font_style=roman font_size=16pt font_weight=bold 
	backgroundcolor=orange  CELLHEIGHT=21PT  CELLWIDTH=20CM }                                                  PROGRAM WATERFALL";

proc report data=capture nowd
	style(report)=[rules=all HEIGHT=18PT  WIDTH=20CM just=left] 
	style(header)=[rules=all cellheight=.4in font_size=8pt background=lightgrey]
	style(column)=[font_size=8pt];
	column  QualNew ( EnrolledNew	Complete InvalidPhone  UnabletoReach Declined ) EnrollRate CaptureRate;
	
	define QualNew/ "Participants Qualified" center;
	define EnrolledNew/ "Participants Enrolled" center;
	define Complete/ "Participants Completed" center;
	define InvalidPhone/ "Invalid/NoPhone#" center;
	define UnabletoReach/ "Unable to Reach" center;
	define Declined/ "Declined to Enroll" center;
	define EnrollRate/"Enrollment Rate" format=percent8.1 center;
	define CaptureRate/"Capture Rate" format=percent8.1 center;

run;

/********************************** Claims ************************************/

Ods pdf text="^S={just=l color=black font_style=roman font_size=16pt font_weight=bold 
	backgroundcolor=orange  CELLHEIGHT=21PT  CELLWIDTH=13CM }                           REFERRAL SOURCE";


proc report data=capture nowd
	style(report)=[rules=all HEIGHT=18PT  WIDTH=13CM just=left] 
	style(header)=[rules=all cellheight=.4in font_size=8pt background=lightgrey]
	style(column)=[font_size=8pt];

	column ClaimsNew ProviderNew ExternalNew InternalNew SelfReferralNew OtherNew;
	define ClaimsNew / "Claims" center;
	define ProviderNew/ "Provider" center;
	define ExternalNew/ "External Referral" center;
	define InternalNew/ "Internal" center;
	define SelfReferralNew/ "Self- Referral" center;
	define OtherNew/ "Other" center;

run;

/********************************** Trimester ************************************/

Ods pdf text="^S={just=l color=black font_style=roman font_size=16pt font_weight=bold 
	backgroundcolor=orange  CELLHEIGHT=21PT  CELLWIDTH=13CM }              TRIMESTER BREAKDOWN &amp;amp; RISK";
 
proc report data=TRIMESTER_SUMMARY nowd
	style(report)=[rules=all HEIGHT=18PT  WIDTH=13CM just=l] 
	style(header)=[rules=all cellheight=.4in font_size=8pt background=lightgrey]
	style(column)=[font_size=8pt];
	column status one two three total;
	define status /  " ";
	define one / "1st Trimester" center;
	define two / "2nd Trimester" center;
	define three / "3rd Trimester" center;
	define TOTAL/ "Total" center;
	define n/  format=6. ;
	define Total_Per/  format=percent8.1 "Total_Per" ;
	
	DEFINE Total_Per/ computed format=percent8.1 "Total_Per" ;
	
run;

/****************************** Outcomes - Mother ********************************/

ods region x=0.1 pct y=4.35in  height=38 pct width=33 pct; 

Ods pdf text="^S={just=l color=black font_style=roman font_size=16pt font_weight=bold backgroundcolor=orange  CELLHEIGHT=17PT  CELLWIDTH=6.3CM }OUTCOMES - MOTHER";

PROC REPORT DATA =MOTHER_METRICS nowd
	style(report)=[rules=all WIDTH=6.3CM just=l] 
	style(header)=[rules=all cellheight=.6in font_size=8pt background=lightgrey]
	style(column)=[font_size=8pt];
	COLUMN Response total_cases Total_Per;
	DEFINE Response/  'Delivery Type' center;
	DEFINE total_cases/  format=6. "Total Cases" center;
	DEFINE Total_Per/  format=percent8.1 "% of Total" center;
RUN;

/****************************** Outcomes - New Born ********************************/

ods region x=40 pct y=4.35in height=50 pct width=60 pct ; 

Ods pdf text="^S={just=center color=black font_style=roman font_size=16pt font_weight=bold backgroundcolor=orange  CELLHEIGHT=17PT  CELLWIDTH=11.5cm }OUTCOMES - NEWBORN";

PROC REPORT DATA =NEW_BORN_METRICS nowd
	style(report)=[rules=all] 
	style(header)=[rules=all cellheight=.6in font_size=8pt background=lightgrey]
	style(column)=[font_size=8pt];
	COLUMN ('Outcomes' Question  Response) ('Total Cases' total_cases) ('% of Total' Total_Per);
	DEFINE Question/ GROUP ' ' center;
	DEFINE Response/ GROUP ' ' center;
	DEFINE total_cases/  format=6. " " center;
	DEFINE Total_Per/ format=percent8.1 " " center;
RUN;

ods layout end; 
ods pdf close;

%mend create_pdf_new2;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Code is above. Using SAS EG 6.1, SAS 9.4 and output is pdf. I can run my code in a separate code window in SAS EG and there is no error. But when I put the code in a macro with the rest of my code I get this error. Line 180 is the second line in this log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MPRINT(CREATE_PDF_NEW2): ods region x=0.1 pct y=4.35in height=38 pct width=33 pct;&lt;/P&gt;
&lt;P&gt;MPRINT(CREATE_PDF_NEW2): PROC REPORT DATA =MOTHER_METRICS nowd style(report)=[rules=all WIDTH=6.3CM just=l]&lt;/P&gt;
&lt;P&gt;4 The SAS System 22:27 Thursday, December 3, 2015&lt;/P&gt;
&lt;P&gt;style(header)=[rules=all cellheight=.6in font_size=8pt background=lightgrey] style(column)=[font_size=8pt];&lt;/P&gt;
&lt;P&gt;MPRINT(CREATE_PDF_NEW2): COLUMN Response total_cases Total_Per;&lt;/P&gt;
&lt;P&gt;MPRINT(CREATE_PDF_NEW2): DEFINE Response/ 'Delivery Type' center;&lt;/P&gt;
&lt;P&gt;MPRINT(CREATE_PDF_NEW2): DEFINE total_cases/ format=6. "Total Cases" center;&lt;/P&gt;
&lt;P&gt;MPRINT(CREATE_PDF_NEW2): DEFINE Total_Per/ format=percent8.1 "% of Total" center;&lt;/P&gt;
&lt;P&gt;MPRINT(CREATE_PDF_NEW2): RUN;&lt;/P&gt;
&lt;P&gt;NOTE: Multiple concurrent threads will be used to summarize data.&lt;/P&gt;
&lt;P&gt;NOTE: There were 3 observations read from the data set WORK.MOTHER_METRICS.&lt;/P&gt;
&lt;P&gt;NOTE: PROCEDURE REPORT used (Total process time):&lt;/P&gt;
&lt;P&gt;real time 0.03 seconds&lt;/P&gt;
&lt;P&gt;user cpu time 0.01 seconds&lt;/P&gt;
&lt;P&gt;system cpu time 0.00 seconds&lt;/P&gt;
&lt;P&gt;memory 7200.68k&lt;/P&gt;
&lt;P&gt;OS Memory 47796.00k&lt;/P&gt;
&lt;P&gt;Timestamp 12/04/2015 01:52:26 PM&lt;/P&gt;
&lt;P&gt;Step Count 687 Switch Count 38&lt;/P&gt;
&lt;P&gt;Page Faults 0&lt;/P&gt;
&lt;P&gt;Page Reclaims 1283&lt;/P&gt;
&lt;P&gt;Page Swaps 0&lt;/P&gt;
&lt;P&gt;Voluntary Context Switches 109&lt;/P&gt;
&lt;P&gt;Involuntary Context Switches 0&lt;/P&gt;
&lt;P&gt;Block Input Operations 0&lt;/P&gt;
&lt;P&gt;Block Output Operations 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MPRINT(CREATE_PDF_NEW2): ods region x=40 pct y=4.35in height=50 pct width=60 pct ;&lt;/P&gt;
&lt;P&gt;MPRINT(CREATE_PDF_NEW2): Ods pdf text="^S={just=center color=black font_style=roman font_size=16pt font_weight=bold&lt;/P&gt;
&lt;P&gt;backgroundcolor=orange CELLHEIGHT=17PT CELLWIDTH=11.5cm }OUTCOMES - NEWBORN";&lt;/P&gt;
&lt;P&gt;MPRINT(CREATE_PDF_NEW2): PROC REPORT DATA =NEW_BORN_METRICS nowd style(report)=[rules=all] style(header)=[rules=all&lt;/P&gt;
&lt;P&gt;cellheight=.6in font_size=8pt background=lightgrey] style(column)=[font_size=8pt];&lt;/P&gt;
&lt;P&gt;MPRINT(CREATE_PDF_NEW2): COLUMN ('Outcomes' Question Response) ('Total Cases' total_cases) ('% of Total' Total_Per);&lt;/P&gt;
&lt;P&gt;MPRINT(CREATE_PDF_NEW2): DEFINE Question/ GROUP ' ' center;&lt;/P&gt;
&lt;P&gt;MPRINT(CREATE_PDF_NEW2): DEFINE Response/ GROUP ' ' center;&lt;/P&gt;
&lt;P&gt;MPRINT(CREATE_PDF_NEW2): DEFINE total_cases/ format=6. " " center;&lt;/P&gt;
&lt;P&gt;MPRINT(CREATE_PDF_NEW2): DEFINE Total_Per/ format=percent8.1 " " center;&lt;/P&gt;
&lt;P&gt;MPRINT(CREATE_PDF_NEW2): RUN;&lt;/P&gt;
&lt;P&gt;NOTE: Multiple concurrent threads will be used to summarize data.&lt;/P&gt;
&lt;P&gt;NOTE: There were 9 observations read from the data set WORK.NEW_BORN_METRICS.&lt;/P&gt;
&lt;P&gt;NOTE: PROCEDURE REPORT used (Total process time):&lt;/P&gt;
&lt;P&gt;real time 0.03 seconds&lt;/P&gt;
&lt;P&gt;user cpu time 0.01 seconds&lt;/P&gt;
&lt;P&gt;system cpu time 0.00 seconds&lt;/P&gt;
&lt;P&gt;memory 6850.68k&lt;/P&gt;
&lt;P&gt;OS Memory 47796.00k&lt;/P&gt;
&lt;P&gt;Timestamp 12/04/2015 01:52:26 PM&lt;/P&gt;
&lt;P&gt;Step Count 688 Switch Count 36&lt;/P&gt;
&lt;P&gt;Page Faults 0&lt;/P&gt;
&lt;P&gt;Page Reclaims 1284&lt;/P&gt;
&lt;P&gt;Page Swaps 0&lt;/P&gt;
&lt;P&gt;Voluntary Context Switches 101&lt;/P&gt;
&lt;P&gt;Involuntary Context Switches 2&lt;/P&gt;
&lt;P&gt;Block Input Operations 0&lt;/P&gt;
&lt;P&gt;Block Output Operations 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MPRINT(CREATE_PDF_NEW2): ods layout end;&lt;/P&gt;
&lt;P&gt;5 The SAS System 22:27 Thursday, December 3, 2015&lt;/P&gt;
&lt;P&gt;MPRINT(CREATE_PDF_NEW2): ods pdf close;&lt;/P&gt;
&lt;P&gt;NOTE: ODS PDF printed 1 page to /optum/csg/01datafs/dev/phi/data/custom/projects/MultiClient/LPR194735_MaternityPPR/MATERNITY&lt;/P&gt;
&lt;P&gt;Monthly Report3C - 201501.pdf.&lt;/P&gt;
&lt;P&gt;MLOGIC(CREATE_PDF_NEW2): Ending execution.&lt;/P&gt;
&lt;P&gt;180: LINE and COLUMN cannot be determined.&lt;/P&gt;
&lt;P&gt;NOTE: NOSPOOL is on. Rerunning with OPTION SPOOL might allow recovery of the LINE and COLUMN where the error has occurred.&lt;/P&gt;
&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TIA,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2015 20:04:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/LINE-and-COLUMN-cannot-be-determined-error/m-p/237886#M14814</guid>
      <dc:creator>DanD999</dc:creator>
      <dc:date>2015-12-04T20:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: LINE and COLUMN cannot be determined.error</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/LINE-and-COLUMN-cannot-be-determined-error/m-p/237894#M14818</link>
      <description>I hate Line/Spool errors because they're hard to debug.&lt;BR /&gt;I had one last night in SAS UE and it was some weird copy/paste issue and I had to retype the code in and then it worked fine. &lt;BR /&gt;&lt;BR /&gt;I can't see anything wrong with your code, someone else may. However, my solution in this type of situation is binary testing. Remove half the code and run. If no bug, put the other half of the code in and run - error should be in that section.  Repeat until bug is isolated.  AKA guess and test &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Fri, 04 Dec 2015 20:59:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/LINE-and-COLUMN-cannot-be-determined-error/m-p/237894#M14818</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-04T20:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: LINE and COLUMN cannot be determined.error</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/LINE-and-COLUMN-cannot-be-determined-error/m-p/237895#M14819</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; wrote:&lt;BR /&gt;I hate Line/Spool errors because they're hard to debug.&lt;BR /&gt;I had one last night in SAS UE and it was some weird copy/paste issue and I had to retype the code in and then it worked fine. &lt;BR /&gt;&lt;BR /&gt;I can't see anything wrong with your code, someone else may. However, my solution in this type of situation is binary testing. Remove half the code and run. If no bug, put the other half of the code in and run - error should be in that section. Repeat until bug is isolated. AKA guess and test &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Thanks for the reply. I tried removing one section at a time and I couldn't find it. I had it running perfectly and I made one last change and it appeared. I reversed the change and it was still there. I can't figure out what happened. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2015 21:09:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/LINE-and-COLUMN-cannot-be-determined-error/m-p/237895#M14819</guid>
      <dc:creator>DanD999</dc:creator>
      <dc:date>2015-12-04T21:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: LINE and COLUMN cannot be determined.error</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/LINE-and-COLUMN-cannot-be-determined-error/m-p/237896#M14820</link>
      <description>It's usually a semicolon/quote error. I feel like copying and pasting may also introduce some invisible blanks that cause issues. If you can put the code in a text editor, check for invisible chars and then paste back into a clean session.</description>
      <pubDate>Fri, 04 Dec 2015 21:11:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/LINE-and-COLUMN-cannot-be-determined-error/m-p/237896#M14820</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-04T21:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: LINE and COLUMN cannot be determined.error</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/LINE-and-COLUMN-cannot-be-determined-error/m-p/237903#M14822</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; wrote:&lt;BR /&gt;It's usually a semicolon/quote error. I feel like copying and pasting may also introduce some invisible blanks that cause issues. If you can put the code in a text editor, check for invisible chars and then paste back into a clean session.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That's one of the weirder problems I've come across. I started from scratch with the barest of code needed to output something. I copied and pasted the same code, section by section and it worked without error each step of the way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I have found things the way you suggested. Thanks for your suggestions.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2015 21:52:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/LINE-and-COLUMN-cannot-be-determined-error/m-p/237903#M14822</guid>
      <dc:creator>DanD999</dc:creator>
      <dc:date>2015-12-04T21:52:16Z</dc:date>
    </item>
  </channel>
</rss>

