Frequently Asked Questions about COB2SAS

COB2SAS is a tool that can be used to convert a COBOL FILE DESCRIPTOR SECTION into a SAS INPUT and LABEL statement. It reads as it's input your COBOL COPYBOOK. It produces a SAS INPUT statement and a SAS LABEL statement. The LABEL statement associates data names with the SAS variable names. It also produces a SAS data library that contains all of the information that it gathered about the copybook.

The most current release is Release 2, which was made available in July of 1990; however, there has been one fix to COB2SAS since then. The fix is in the R2COB2 file. The new R2COB2 file is incorporated into the zipped COB2SAS downloadable file on the SAS ftp site and on the SAS Web site. If you want only the changed R2COB2 member, then you can download it from http://www.sas.com/techsup/download/mvs/cob2sas. For more information about Release 2 of COB2SAS see the Release Notes.

This download contains additional modifications to COB2SAS are that add support for long variable names. This is not considered a new release.

If you're reading this, then you've already got COB2SAS with the V8 modifications. If you want COB2SAS for V6, then it's available in downloadable form on the SAS web site. In order to install it, you will need installation instructions. These can be obtained in Technical Support Document TS-536. This document contains links to the download locations.

Yes! The documentation is online. COB2SAS comes with a number of files. Many of them contain documentation. The following are a list of the files and the documentation they contain:

By default COB2SAS doesn't expand OCCURS clauses. If you want COB2SAS to expand occurs clauses, you must edit your R2MVS, R2CMS, R2WIN, or R2UNX member (depending on which operating system you are using). Locate the line of code that includes the R2COB5 program. By default this line is commented out. Uncomment the line, save the program, and COB2SAS will expand your OCCURS clauses.

Note that COB2SAS will not expand nested OCCURS clauses. COB2SAS will also assume the upper bound when it encounters an OCCURS DEPENDING ON clause.

This could be happening for any of the following reasons:

ERROR: The POINT= data set option is not valid for the data set WORK.DICTNRY, the data set must be accessible by observation number for POINT= processing.

You're getting this error because you have the COMPRESS=YES system option set. COB2SAS uses the SET statement with the POINT= option. You can not use POINT= on a compressed data set. To circumvent specify COMPRESS=NO.

Fillers are just that - fillers. Your COBOL program isn't using them, so COB2SAS ignores them. SAS doesn't have the group variable construct so COB2SAS ignores them too.