DATA Step, Macro, Functions and more

LINE and COLUMN cannot be determined.error

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 16
Accepted Solution

LINE and COLUMN cannot be determined.error

I've been looking through the forums and have seen this issue crop up before.  It looks like it should be some form of semicolon placement but I've tried running this seperately and couldn't find the issue.  Does anyone have an idea?

 

I'm trying to create a macro to isolate patients from one dataset (labelled "SOURCE.fo_id", for the ID variable) with any new dataset ("&data") - the code for this is below.

 

 

%MACRO subset (data=);
DATA &data._fo;
	MERGE 	SOURCE.fo_id (in= info_id)
			&data (in= inmerge);
	BY ID;
	IF info_id inmerge;
RUN;	

%MEND subset;

 

However, everytime I try to run this I'm recieving the following error message: 

22: LINE and COLUMN cannot be determined.
NOTE 242-205: NOSPOOL is on. Rerunning with OPTION SPOOL might allow recovery of the LINE and
COLUMN where the error has occurred.

 

 

Has anyone encountered this issue before or have any suggestions? Am I missing something silly?

 


Accepted Solutions
Solution
‎04-05-2017 09:46 PM
Super User
Posts: 5,083

Re: LINE and COLUMN cannot be determined.error

Yes, an easy fix.  Assuming you want matches on ID:

 

if info_id and inmerge;

View solution in original post


All Replies
Solution
‎04-05-2017 09:46 PM
Super User
Posts: 5,083

Re: LINE and COLUMN cannot be determined.error

Yes, an easy fix.  Assuming you want matches on ID:

 

if info_id and inmerge;

Occasional Contributor
Posts: 16

Re: LINE and COLUMN cannot be determined.error

That change worked! Thank you so much!!

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 304 views
  • 0 likes
  • 2 in conversation