BCS COBOL Instream Compile Procedure

In some installations modifications have been perpetuated that render them unrecognizable to seasoned technicians. If you find yourself in one of those situation you may be able to use this standard COBOl compile and link proc to compile and link COBOL programs.

//AMBCOB JOB The job card info goes here
/*JOBPARM  L=99
//IGYWCL   PROC GOPGM=GO,
//         LIBPRFX='SYS1.CEE',
//         PGMLIB='&&GOSET',
//         SYSLBLK=3200
//*
//*        COMPILE AND LINK EDIT A COBOL PROGRAM
//*
//*        CALLER MUST SUPPLY //COBOL.SYSIN DD ...
//*
//*        GOPGM     GO               MEMBER NAME FOR LOAD MODULE
//*        LIBPRFX   CEE
//*        LNGPRFX   IGY.V2R1M0
//*        PARAMETER DEFAULT VALUE
//*        PGMLIB    &&GOSET          DATA SET NAME FOR LOAD MODULE
//*        SYSLBLK   3200
//*
//COBOL    EXEC PGM=IGYCRCTL,
//         PARM='XREF,MAP',
//         REGION=2048K
//SYSLIN   DD DCB=(BLKSIZE=&SYSLBLK),
//            DISP=(MOD,PASS),
//            DSNAME=&&LOADSET,
//            SPACE=(TRK,(3,3)),
//            UNIT=VIO
//SYSPRINT DD SYSOUT=*
//SYSUT1   DD SPACE=(CYL,(1,1)),UNIT=VIO
//SYSUT2   DD SPACE=(CYL,(1,1)),UNIT=VIO
//SYSUT3   DD SPACE=(CYL,(1,1)),UNIT=VIO
//SYSUT4   DD SPACE=(CYL,(1,1)),UNIT=VIO
//SYSUT5   DD SPACE=(CYL,(1,1)),UNIT=VIO
//SYSUT6   DD SPACE=(CYL,(1,1)),UNIT=VIO
//SYSUT7   DD SPACE=(CYL,(1,1)),UNIT=VIO
//LKED     EXEC PGM=HEWL,
//         COND=(8,LT,COBOL),
//         PARM='LET,LIST,NCAL',
//         REGION=1024K
//SYSLIB   DD DISP=SHR,
//            DSNAME=&LIBPRFX..SCEELKED
//SYSLIN   DD DISP=(OLD,DELETE),DSNAME=&&LOADSET
//         DD DDNAME=SYSIN
//SYSLMOD  DD DSNAME=&PGMLIB(&GOPGM),
//            SPACE=(TRK,(10,10,1)),
//            UNIT=VIO,DISP=(MOD,PASS)
//SYSPRINT DD SYSOUT=*
//SYSUT1   DD SPACE=(TRK,(10,10)),UNIT=VIO
//         PEND
//CMPLNK   EXEC IGYWCL
//COBOL.SYSIN  DD DISP=SHR,DSN=DR.DU0069.CNTL(DT20050C)
//LKED.SYSLMOD DD DISP=SHR,DSN=DT.TLOADLB(DT20050C)

Things to notice about this proc includes it contents are sorted in ascending alphabetical order.  This technique facilitates others using this procedure a consistent organization scheme that allows for rapid location of pertinent information.  Notice even the sub parameters for data definition statements are ordered in ascending order.

I insist all my protege’s perform their work at a high professional level.   I tell them if the job is not worth performing at a high level then they may want to consider another profession.

Mr. Arch Brooks, Software Engineer, Brooks Computing Systems authored this article.

BCS Solutions For Monolithic COBOL Applications

One recurring problem with COBOL source code is the monolithic model. The monolithic model (the huge COBOL program) is difficult to debug and maintain. COBOL subprograms allow complex applications modularity and structure.

If you attempt to devour a porterhouse whole mastication and digestion becomes a problem. On the other hand if you use the steak knife and carve the porterhouse in bite size pieces mastication and digestion is easily achieved.

This analogy holds true for large monolithic COBOL programs. Your COBOL application can be very complex and very manageable with the minimum amount of forethought and planning.

The quickest way to yield positive results is to employ COBOL sub programs. The main or driver programs should consist primarily a list of calls to the available sub programs.

This approach also promotes modular testing of all associated component of the designed COBOL application.

Further information on COBOL sub programming may be found here.

This techique is further leveraged by incorporating it into COBOL Source Code Generation.

Mr. Arch Brooks, Software Engineer, Brooks Computing Systems authored this article.

BCS FORTRAN Eclipse SDK 4.1 Installation

Installation of the FORTRAN Compiler in the Eclipse SDK 4.1 is comprised of a two step process. The first step is to install the plugins for Eclipse.

The documentation to install the Eclipse plugin is here.  Depending on your installation you may need to resolve some undefined references.  Use the normal Eclipse techniques to solve issues of this nature.

Part two of the install involves using the Linux interpreter in Windows 7 to install the FORTRAN compiler and the required make utility.

The documentation to install the compiler and Make utility is here.  The install for Cygwin is pretty much self explanatory.  Do not forget to append the path so pertinent components can be located.

Mr. Arch Brooks, Software Engineer, Brooks Computing Systems authored this article.