Usage Note 22734: What can I do when the DIR/FULL DCL command on OpenVMS reports that the record attribute is "Carriage
return carriage control" for a transport file?
While OpenVMS can read a transport file with or without this attribute, other hosts will not be able read a
transport file created with this file characteristic. The record attribute must be removed from the transport file
before it is moved to the new host.
There are two approaches to the problem. If you are running SAS Release 6.08 at the TS405 level or higher on OpenVMS/VAX, or Release 6.09 or higher on OpenVMS/Alpha, you can tell SAS to create the transport file without the
carriage return carriage control attribute.
Note: The TS level is the amount of maintenance your installed SAS image has received. You can find the TS level by checking the top of the SAS log.
NOTE: Copyright (c) 1989-1992 by SAS Institute Inc., Cary, NC, USA.
NOTE: SAS (r) Proprietary Software Release 6.08 TS420
Licensed to XYZ Company, Site 000999999
In order to create the transport file without the record attributes of carriage return carriage control, use
CC=NONE in your LIBNAME or FILENAME statement with the XPORT engine.
XPORT engine Example 1:
libname sasdata '[username]';
libname gone xport '[username]tranfile.dat' cc=none;
data gone.account;
set sasdata.users;
if code='00003' then status='ALERT';
else status='REG';
run;
XPORT engine Example 2:
libname sasdata '[username]';
libname gone xport '[username]tranfile.dat' cc=none;
proc copy in=sasdata out=gone;
run;
PROC CPORT example:
libname saslib '[username]';
filename portfile '[username]goneallcats.dat' cc=none;
proc cport library=saslib file=portfile memtype=catalog;
run;
If the TS level is Release 6.08 and below TS405 on VAX/VMS, you will need to post-process the transport file at the
operating system prompt to remove the record attribute of "Carriage return carriage control," since the CC=NONE
option is not available prior to that release.
The following steps indicate how to post-process a transport file called [username]tranfile2.seq .
Step 1:
Use your favorite OpenVMS editor and create a file called REMCC.FDL. Put the following lines in this
file:
RECORD
BLOCK_SPAN YES
CARRIAGE_CONTROL NONE
FORMAT FIXED
SIZE 80
Step 2:
Issue the following DCL command to create a new file called NEWTRANFILE.SEQ:
$ CONVERT/FDL=REMCC.FDL TRANFILE2.SEQ NEWTRANFILE.SEQ
Step 3:
Issue the following command to confirm that the record attribute has been changed to NONE:
$ DIR/FULL [USERNAME]NEWTRANFILE.SEQ
Step 4:
Move NEWTRANFILE.SEQ to another operating system using binary file transport.
Operating System and Release Information
| SAS System | Base SAS | OpenVMS VAX | n/a | |
| All | n/a | |
| OpenVMS Alpha | n/a | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Usage Note |
| Priority: | low |
| Topic: | Data Management ==> Administration ==> Migration
|
| Date Modified: | 2008-01-28 15:14:35 |
| Date Created: | 2002-12-16 10:56:51 |