DATA Step, Macro, Functions and more

How do I get a PROC DS2 package to print something to the log?

Reply
Frequent Contributor
Posts: 101

How do I get a PROC DS2 package to print something to the log?

[ Edited ]

How do I get 'foobar' to appear on the log when invoking the match method in the PROC DS2 package?

 

proc ds2;
	package regexp / overwrite=yes;
		method match( char pattern, char string ) returns integer;
			put 'foobar';
			return prxmatch(pattern, string);
		end;
	run;
quit;

PROC FEDSQL;
	DROP TABLE example FORCE;
	CREATE TABLE example (
		is_valid INTEGER
	);
	INSERT INTO example VALUES (regexp.match('/[0-9]+/', '123'));
QUIT;

 m

Ask a Question
Discussion stats
  • 0 replies
  • 53 views
  • 0 likes
  • 1 in conversation