Date: Wed, 27 Nov 1996 23:03:28 GMT
Reply-To: Tim Obrey <tobrey@MOOSEHEAD.AGATE.NET>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Tim Obrey <tobrey@MOOSEHEAD.AGATE.NET>
Organization: Moosehead On-Line
Subject: Closing a dataset in FSP/SCL
I have written a small scl program for a fsedit screen that simply opens up
two other datasets, performs a match-merge, and fetches some of the variables
in the other two datasets. I can't find the proper syntax to close the
datasets I have opened. I get the warning Closing dataset ...... left open by
program when closing the dataset. A basic outline of the program looks like
this:
INIT:
control label;
fdata=open('sfish.lakes', 'i');
fdata2=open('sfish.streams','i');
if fdata ne 0 then call set(fdata);
if fdata2 ne 0 then call set(fdata2);
return;
MAIN:
/* program statements */
return;
TERM:
call close(fdata);
call close(fdata2);
return;
Any help would be appreciated.
--
Tim Obrey
tobrey@moosehead.agate.net