Server administrators should perform the following steps, which
describe one way to import the COBOL copybook:
-
Obtain the required
set of SAS programs that supports copybook import. Perform the following
steps from Technical Support document TS-536 to download the version
of COB2SAS8.SAS that was modified for SAS 8:
-
-
Unzip the file into
an appropriate directory.
-
Read the README.TXT
file. It contains information about this modified version of COB2SAS8.SAS.
It also contains additional information about the installation process.
-
Click
Import
COBOL Copybook in the
Tools menu
for SAS Data Integration Studio to access the
Cobol Copybook
Location and Options window.
-
Select a
SAS Application Server in the
Server field. The selected
SAS Application Server must be able to resolve the paths that are
specified in the
Copybook(s) field and the
COBOL format file directory field.
-
Indicate the original
platform for the COBOL data file by selecting the appropriate radio
button in the
COBOL data resides on field.
-
Select a copybook file
to import in the
Copybook(s) field. If you
have imported copybooks in the past, you can select from a list of
up to eight physical paths to previously selected copybook files.
If you need to import a copybook that you have never used in SAS Data
Integration Studio, you have two options. First, you can click
Add to type a local or remote path manually. Second,
you can click
Browse to browse for a copybook that is local to the selected SAS Application Server.
-
Specify a physical path
to the directory for storing the COBOL format file in the
COBOL format file directory field. You can enter a local
or remote path in the field, choose a previously selected location
from the drop-down menu, or browse to the file.
-
Click
OK when you are finished. The
Review object names to be
created window displays.
-
Verify the name of the
COBOL format file or files. Specify a physical path for the SAS log
file in the
SAS Log field. This file is saved
to the SAS Data Integration Studio client machine.
-
Click
OK when you are finished. One or more COBOL format files are created
from the COBOL copybook file.
Note: If the external file resides
on the MVS operating system, and the filesystem is native MVS, then
the following usage notes apply.
-
Add the MVS:
tag as a prefix to the name of the COBOL copybook file in the Copybook(s) field . Here is an example filename: MVS:wky.tst.v913.etls.copybook
.
-
Native MVS includes partitioned
data sets (PDS and PDSE). Take this factor into account when you specify
a physical path to the directory for storing the COBOL format file
in the COBOL format file directory field .
Here is an example path: MVS:dwatest.tst.v913.cffd
.
-
The COB2SAS programs must reside
in a PDS with certain characteristics. For more information about
these characteristics, see http://support.sas.com/techsup/technote/ts536.html.
-
The path to the r2cob1.sas
program should specify the PDS and member
name. Here is an example path, which would be specified in
the Full path for r2cob1.sas field in the Advanced options window: mvs:dwatest.tst.v913.cob2sasp(r2cob1)
.