|Date: ||Fri, 14 May 2004 16:59:10 +0200|
|Reply-To: ||Ace <b.rogers@VIRGIN.NET>|
|Sender: ||"SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>|
|From: ||Ace <b.rogers@VIRGIN.NET>|
|Subject: ||Re: coding in sas/af|
|Content-Type: ||text/plain; charset=us-ascii|
On 14 May 2004 07:01:08 -0700, firstname.lastname@example.org (kumar) wrote:
>can any body explain what exactly this does I mean the Functions that
>are used it SAS/AF application
A set of AF/Frame and SCL manuals would be your best bet. As you
presumably don't have them, I'll do it for this time, but just this
>st = open ('a.status (keep = Idate prdate ');
Opens a SAS dataset called a.status, keeping only the variables
specified. A pointer value is stored in variable st.
>contol always ;
"control always; ", I assume. This means that the MAIN portion of the
SCL program will be executed every time the User presses enter.
Links variables in the SCL program with the same-named variables on
the dataset pointed to by the pointer variable st.
>rc = fetchobs(st,1);
Reads the first record from the dataset pointed to by the pointer
variable st. Because of the SET call above, the values of dataset
variables Idate and prdate from that record are now available in the
>and Most important all what is RC stands for and what does it do and
RC is just a return code from the fetchobs call. It will contain a
value of zero if the specified record was read, -1 if you're trying to
read past the end of the datast, or some other non-zero value if
there's some other error.
Ace in Basel - brucedotrogers a.t rochedotcom