Joined: 22 Aug 2005 Posts: 6 Topics: 4 Location: hyderabad
Posted: Thu Feb 19, 2009 12:34 am Post subject: SAS: How to download a SAS dataset to a SDS folder
Hi,
Can anyone let me know the procedure for downloading the SAS dataset present in Mainframe to a SDS folder(similiar to FTP folder). On the destination side, the SAS dataset should be saved with extension "sas7bdat" i.e., MEMTYPE=DATA during downloading...I need this with this extension such that it should be readily openable using PC-SAS...
My Client uses the below code to download a SAS dataset present in Mainframe using PC-SAS as below:-
Code:
libname tmp1
'C:\Documents and Settings\Client\My Documents\dat\FOLDER_ANY';
/*--------------------------------------------------------------*/
/* SIGNON Mainframe and Download SAS Library */
/*--------------------------------------------------------------*/
%let host = HOST_NAME;
options remote = host;
options comamid= tcp;
filename rlink '!sasroot\connect\saslink\Client.scr';
signon;
/*--------------------------------------------------------------*/
rsubmit;
libname dest clear;
libname dest 'SAS dataset on Mainframe' disp=shr;
proc download inlib = dest
outlib = TMP1
memtype = data;
run;
endrsubmit;
signoff;
When this code has been executed, the TMP1 library will contain the sas dataset downloaded in *.SAS7BDAT format. She just double clicks it to open it in Table editor(present in PC-SAS) to view the data...
Now the above process needs to be automated in Mainframe side.. So I have to do with out writing any code in PC-SAS again...which means that I should not write a code(PROC CIMPORT) to view the data....
Write access to member CLAIMSX.CLAIM_AUS.DATA is denied
PROC CONTENTS OF CLAIMSF is
Code:
The CONTENTS Procedure
Data Set Name CLAIMSF.CLAIM_AUS Observations
Member Type DATA Variables
Engine V9 Indexes
Created Wed, Feb 18, 2009 02:39:17 PM Observation Length
Last Modified Wed, Feb 18, 2009 02:39:17 PM Deleted Observations
Protection Compressed
Data Set Type Reuse Space
Label Point to Observation
Data Representation MVS_32 Sorted
Encoding open_ed-1047 Western (OpenEdition)
Engine/Host Dependent Information
Data Set Page Size 25600
Number of Data Set Pages 14
Number of Data Set Repairs 0
Physical Name sas dataset
Release Created 9.0101M3
Release Last Modified 9.0101M3
Created by SBCY683E
Last Modified by SBCY683E
. . . . . . . . . . . . . . . . . . . . . . . . . . .
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum