—•Today is •—

To import a SAS transport file from MVS/TSO platform into SAS/PC side, there are three important steps to remember. (1) writing JCL statement, (2) FTP downloading, and (3) the COPY proc.


	//USR0TEST  JOB (1234),'CMC-MaQI-x6354',
	//          TIME=1440,MSGLEVEL=(1,1),MSGCLASS=X,REGION=4096K,
	//          CLASS=M,USER=USR0C2C,NOTIFY=USR0C2C
	//STEP1     EXEC PGM=IEFBR14
	//SASMULTI  DD DISP=(NEW,PASS),UNIT=SYSDA,
	//          SPACE=(CYL,(2000,0)),VOL=(,,,3)
	//STEP2     EXEC SAS8
	//WORK      DD DISP=(OLD,DELETE,DELETE),DSN=*.STEP1.SASMULTI
	//SASUSER   DD DISP=SHR,DSN=USR0C2C.SAS8.SASUSER
	//************************************************************
	//* your data set name where it reads your SAS file from     *
	//************************************************************
	//INCCS5    DD DISP=SHR,DSN=TESTS.RST.M0A.CATALYST.CCS5
	//************************************************************
	//* create a data set name where you stored your xport file  *
	//* and to be downloaded into your PC from MVS/TSo           *
	//************************************************************
	//TRANFILE  DD DSN=TESTS.RST.CMC.CCS5.TRANFILE,
	//          UNIT=SYSDA,SPACE=(CYL,(200,100),RLSE),
	//          DISP=(,KEEP,DELETE)
	//SYSIN     DD *
	
	/* this is an optional option that you may add into your program */
	options errors=5 missing=0 errorabend mlogic source2 symbolgen
	        nodate cmpopt sortname=sort;

	libname tranfile xport;

	data tranfile.all;
	  set inccs5.all;
	run;
				

When the downloading the tranfile using FTP, make sure you use BINARY.


	ftp> binary
	200 Representation type is Image
	ftp>
				

Using the COPY proc is one approach to copy the SAS dataset to another storage volume, for example, from the mainframe to the PC.


	/* from the SAS/PC side */

	libname tranfile xport 'c:\sasfile\inccs5.exp';
	proc copy in=tranfile out=carlo memtype=data;
	  select all;
	run;
				

Print Document

Copyright © 2002-2004 www.nycinformatics®.com All Rights Reserved
Last edited on: May 28, 2006
SAS product or service names are registered trademarks of SAS Institute, Inc. in the USA and other countries.
® indicates USA registration.