COB2SAS is a free sample program that can assist you with converting COBOL data description entries (also known as FDs, copybooks, or copylibs) into equivalent SAS® language INPUT and LABEL statements. COB2SAS reads, as its input, your COBOL program (or copybook). It parses the COBOL program, searching for FILE DESCRIPTOR sections. When COB2SAS finds a FILE DESCRIPTOR section, it parses this section to produce an equivalent SAS INPUT statement. A SAS LABEL statement is also produced to associate the SAS variable names with the COBOL data names. These INPUT and LABEL statements then can be used in a SAS program to read the file in which the FILE DESCRIPTOR section was pointing. A SAS data library is also produced that contains all of the information gathered about the copybook.
COB2SAS is written in the SAS language and executes on MVS, CMS, UNIX, and Windows platforms.
The SAS variable names that are produced will be up to 30 characters long. By default, the SAS INPUT and LABEL statements are written to an external file that is referred to by the OUTSAS fileref. By default, the information gathered by COB2SAS is written to a permanent SAS data library that is referenced by the PERM libref.
COB2SAS is a tool that that can be used to assist in converting COBOL copybook to SAS INPUT statements. There are some things that COB2SAS cannot fully handle and requires additional work so SAS can properly load the data files created by your COBOL program. Refer to the FAQ document for information about some of the common problems.
Product Family | Product | System | SAS Release | |
Reported | Fixed* | |||
SAS System | Base SAS | z/OS | ||
z/OS 64-bit | ||||
OpenVMS VAX | ||||
Macintosh | ||||
Microsoft® Windows® for 64-Bit Itanium-based Systems | ||||
Microsoft Windows Server 2003 Datacenter 64-bit Edition | ||||
Microsoft Windows Server 2003 Enterprise 64-bit Edition | ||||
Microsoft Windows XP 64-bit Edition | ||||
Microsoft® Windows® for x64 | ||||
OS/2 | ||||
Microsoft Windows 8 Enterprise 32-bit | ||||
Microsoft Windows 8 Enterprise x64 | ||||
Microsoft Windows 8 Pro 32-bit | ||||
Microsoft Windows 8 Pro x64 | ||||
Microsoft Windows 8.1 Enterprise 32-bit | ||||
Microsoft Windows 8.1 Enterprise x64 | ||||
Microsoft Windows 8.1 Pro 32-bit | ||||
Microsoft Windows 8.1 Pro x64 | ||||
Microsoft Windows 10 | ||||
Microsoft Windows 95/98 | ||||
Microsoft Windows 2000 Advanced Server | ||||
Microsoft Windows 2000 Datacenter Server | ||||
Microsoft Windows 2000 Server | ||||
Microsoft Windows 2000 Professional | ||||
Microsoft Windows NT Workstation | ||||
Microsoft Windows Server 2003 Datacenter Edition | ||||
Microsoft Windows Server 2003 Enterprise Edition | ||||
Microsoft Windows Server 2003 Standard Edition | ||||
Microsoft Windows Server 2003 for x64 | ||||
Microsoft Windows Server 2008 | ||||
Microsoft Windows Server 2008 R2 | ||||
Microsoft Windows Server 2008 for x64 | ||||
Microsoft Windows Server 2012 Datacenter | ||||
Microsoft Windows Server 2012 R2 Datacenter | ||||
Microsoft Windows Server 2012 R2 Std | ||||
Microsoft Windows Server 2012 Std | ||||
Microsoft Windows Server 2016 | ||||
Microsoft Windows Server 2019 | ||||
Microsoft Windows XP Professional | ||||
Windows 7 Enterprise 32 bit | ||||
Windows 7 Enterprise x64 | ||||
Windows 7 Home Premium 32 bit | ||||
Windows 7 Home Premium x64 | ||||
Windows 7 Professional 32 bit | ||||
Windows 7 Professional x64 | ||||
Windows 7 Ultimate 32 bit | ||||
Windows 7 Ultimate x64 | ||||
Windows Millennium Edition (Me) | ||||
Windows Vista | ||||
Windows Vista for x64 | ||||
64-bit Enabled AIX | ||||
64-bit Enabled HP-UX | ||||
64-bit Enabled Solaris | ||||
ABI+ for Intel Architecture | ||||
AIX | ||||
HP-UX | ||||
HP-UX IPF | ||||
IRIX | ||||
Linux | ||||
Linux for x64 | ||||
Linux on Itanium | ||||
OpenVMS Alpha | ||||
OpenVMS on HP Integrity | ||||
Solaris | ||||
Solaris for x64 | ||||
Tru64 UNIX |
Type: | Usage Note |
Priority: |
Date Modified: | 2021-04-27 11:47:27 |
Date Created: | 2021-04-08 13:16:53 |