LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (March 2011, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 7 Mar 2011 16:57:48 +0000
Reply-To:   "Fehd, Ronald J. (CDC/OCOO/ITSO)" <rjf2@CDC.GOV>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Fehd, Ronald J. (CDC/OCOO/ITSO)" <rjf2@CDC.GOV>
Subject:   Re: How to get the data set id when the data set has been openned?
In-Reply-To:   <201103050707.p24KPQYp027377@waikiki.cc.uga.edu>
Content-Type:   text/plain; charset="us-ascii"

From: Clark An Sent: Saturday, March 05, 2011 2:08 AM Subject: How to get the data set id when the data set has been openned?

%let dsid=%sysfunc(open(mem.a,i)); %syscall set(dsid);

%macro a; data a; a1=1; a2=2; a3=3; /*I want do the things as following for get the macro variables for a1,a2,a3*/ %syscall set(dsid); %mend; %global a1 a2 a3; %a;

TIA!!

hmmmmmm, %syscall set(dsid); does not compute(r);

suggest RTFM on

1. %SYSCALL Statement

Syntax %SYSCALL call-routine<(call-routine-argument-1 <...call-routine-argument-n>)>;

call-routine is a SAS or user-written CALL routine created with SAS/TOOLKIT software or a routine created using the FCMP procedure. All SAS call routines are accessible with %SYSCALL except LABEL, VNAME, SYMPUT, and EXECUTE.

2. SAS Functions and Call Routines under Windows

Ron Fehd macro maven


Back to: Top of message | Previous page | Main SAS-L page