filename tport 'joe.mytest.data' disp=rep; libname test 'joe.mytest.sas'; proc cport library=test file=tport; run;
filename tport 'joe.mytest.data'; libname test 'joe.mytest.sas'; proc cport lib=test file=tport; run; WARNING: No output file is specified. Default output file JOE.SASCAT.DATA is used. NOTE: Proc CPORT begins to transport data set TEST.CITY NOTE: The data set contains 7 variables and 72 observations. NOTE: Transporting data set index information. NOTE: Proc CPORT begins to transport catalog TEST.FORMATS NOTE: The catalog has 3 entries NOTE: Transporting entry REGFMT .FORMATC NOTE: Transporting entry SALEFMT .FORMATC NOTE: Transporting entry SIZEFMT .FORMATC NOTE: Proc CPORT begins to transport catalog TEST.TEST NOTE: The catalog has 11 entries NOTE: Transporting entry ABOUT .CBT NOTE: Transporting entry APPEND .CBT NOTE: Transporting entry BOOKMENU.CBT NOTE: Transporting entry DEFAULT .FORM NOTE: Transporting entry HELP .HELP NOTE: Transporting entry CLIST .LIST NOTE: Transporting entry ENTRYTYP.LIST NOTE: Transporting entry SPELLALL.PMENU NOTE: Transporting entry SPELLSUG.PMENU NOTE: Transporting entry ADDON1 .PROGRAM NOTE: Transporting entry ADDON2 .PROGRAM NOTE: Proc CPORT begins to transport data set TEST.VARNUM NOTE: The data set contains 10 variables and 100 observations.
listd "userid.mytest.data" USERID.MYTEST.DATA --RECFM-LRECL-BLKSIZE-DSORG FB 80 8000 PS --VOLUMES-- APP009
put
command is used to write the transport file to the
target computer.
ftp mypc 1 EZA1450I MVS TCP/IP FTP V3R2 EZA1554I Connecting to SPIDER 10.24.2.32, port 21 220 spider FTP server (Version 4.162 Tue Nov 1 10:50:37 PST 1988) ready. EZA1459I USER (identify yourself to the host): userid password EZA1701I >>>USER joe 331 Password required for joe. EZA1701I >>>PASS ******** 230 User joe logged in. EZA1460I Command: 2 binary EZA1701I >>>TYPE i 200 Type set to I. EZA1460I Command: 3 put 'joe.mytest.data' c:\tport.dat EZA1701I >>>SITE VARrecfm Lrecl=80 4 Recfm=FB BLKSIZE=8000 500 'SITE VARRECFM Lrecl=80 Recfm=FB BLKSIZE=23440': EZA1701I >>>PORT 10,253,1,2,129,50 200 PORT command EZA1701I >>>STOR c:\tport.dat 5 150 Opening BINARY mode data connection for c:\tport.dat 226 Transfer complete. 6 EZA2517I 6071600 bytes transferred in 13 seconds. Transfer rate 466.18 Kbytes/sec. EZA1460I Command: 7 quit EZA1701I >>>QUIT 221 Goodbye. READY
put
command copies the transport
file named JOE.MYTEST.DATA from the source computer to the target
computer physical location C:\TPORT.DAT.
libname newlib 'c:\mylib'; proc cimport infile='c:\tport.dat' library=newlib; run;
c:\mylib
, which stores the entire V7 library. PROC CIMPORT reads the entire
content of the transport file that is identified in the INFILE= option
and writes it to the output location that is identified in the LIBNAME=
option.
filename target 'c:\tport.dat'; libname newlib 'c:\mylib'; proc cimport infile=target library=newlib; select varnum; run;
filename target 'c:\tport.dat'; libname newlib 'c:\mylib'; proc cimport infile=target library=newlib memtype=catalog et=program; run;
NOTE: Proc CIMPORT begins to create/update data set NEWLIB.CITY NOTE: The data set index REGION is defined. NOTE: Data set contains 7 variables and 72 observations. NOTE: Proc CIMPORT begins to create/update catalog NEWLIB.FORMATS NOTE: Entry REGFMT.FORMATC has been imported. NOTE: Entry SALEFMT.FORMATC has been imported. NOTE: Entry SIZEFMT.FORMATC has been imported. NOTE: Total number of entries processed in catalog NEWLIB.FORMATS: 3 NOTE: Proc CIMPORT begins to create/update catalog NEWLIB.TEST NOTE: Entry ABOUT.CBT has been imported. NOTE: Entry APPEND.CBT has been imported. NOTE: Entry BOOKMENU.CBT has been imported. NOTE: Entry DEFAULT.FORM has been imported. NOTE: Entry HELP.HELP has been imported. NOTE: Entry CLIST.LIST has been imported. NOTE: Entry ENTRYTYP.LIST has been imported. NOTE: Entry SPELLALL.PMENU has been imported. NOTE: Entry SPELLSUG.PMENU has been imported. NOTE: Entry ADDON1.PROGRAM has been imported. NOTE: Entry ADDON2.PROGRAM has been imported. NOTE: Total number of entries processed in catalog NEWLIB.TEST: 11 NOTE: Proc CIMPORT begins to create/update data set NEWLIB.VARNUM NOTE: Data set contains 10 variables and 100 observations.