New [CODE] tag with syntax Highlight
Posted: Fri Feb 05, 2016 4:13 am
We are introducing new CODE tag in our forum which will support VS COBOL II, ENTERPRISE COBOL, JCL, CICS and DB2 syntax. Just use the BBcode tag CODE and it will parse your input automatically. Please try and let me know your suggestions.
Here are some samples:
Here are some samples:
IDENTIFICATION DIVISION.
PROGRAM-ID. JOBINFO.
*testing
********comments
DATA DIVISION.
WORKING-STORAGE SECTION.
01 JOB-NAME PIC X(8).
01 PROGRAM-NAME PIC X(8).
01 STEP-NAME PIC X(8).
LINKAGE SECTION.
01 PSA.
05 FILLER PIC X(540).
05 PSATOLD POINTER.
01 TCB.
05 FILLER PIC X(12).
05 TCBTIO POINTER.
05 FILLER PIC X(164).
05 TCBJSCBB POINTER.
01 TIOT.
05 TIOCNJOB PIC X(8).
05 TIOCSTPN PIC X(8).
01 JSCB.
05 FILLER PIC X(360).
05 JSCBPGMN PIC X(8).
PROCEDURE DIVISION.
SET ADDRESS OF PSA TO NULL
SET ADDRESS OF TCB TO PSATOLD
SET ADDRESS OF TIOT TO TCBTIO
MOVE TIOCNJOB TO JOB-NAME
MOVE TIOCSTPN TO STEP-NAME
SET ADDRESS OF JSCB TO TCBJSCBB
MOVE JSCBPGMN TO PROGRAM-NAME
DISPLAY 'JOB NAME = ' JOB-NAME
DISPLAY 'STEP NAME = ' STEP-NAME
DISPLAY 'PROGRAM NAME = ' PROGRAM-NAME
GOBACK.
PROGRAM-ID. JOBINFO.
*testing
********comments
DATA DIVISION.
WORKING-STORAGE SECTION.
01 JOB-NAME PIC X(8).
01 PROGRAM-NAME PIC X(8).
01 STEP-NAME PIC X(8).
LINKAGE SECTION.
01 PSA.
05 FILLER PIC X(540).
05 PSATOLD POINTER.
01 TCB.
05 FILLER PIC X(12).
05 TCBTIO POINTER.
05 FILLER PIC X(164).
05 TCBJSCBB POINTER.
01 TIOT.
05 TIOCNJOB PIC X(8).
05 TIOCSTPN PIC X(8).
01 JSCB.
05 FILLER PIC X(360).
05 JSCBPGMN PIC X(8).
PROCEDURE DIVISION.
SET ADDRESS OF PSA TO NULL
SET ADDRESS OF TCB TO PSATOLD
SET ADDRESS OF TIOT TO TCBTIO
MOVE TIOCNJOB TO JOB-NAME
MOVE TIOCSTPN TO STEP-NAME
SET ADDRESS OF JSCB TO TCBJSCBB
MOVE JSCBPGMN TO PROGRAM-NAME
DISPLAY 'JOB NAME = ' JOB-NAME
DISPLAY 'STEP NAME = ' STEP-NAME
DISPLAY 'PROGRAM NAME = ' PROGRAM-NAME
GOBACK.
****** ***************************** Top of Data **************************************
000001 //COBCOMP JOB 'IBMMFS','MAC',CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID
000002 //PROCLIB JCLLIB ORDER=IBMMFS.PRC.COBL
000003 //STEP1 EXEC IGYWCL,
000004 // PARM.COBL='LIB,APOST,XREF,MAP,OFFSET'
000005 //COBL.SYSIN DD DISP=SHR,DSN=IBMMFS.MAC.SOURCE(COBL)
000006 //LKED.SYSLIB DD DISP=SHR,DSN=IBMMFS.MAC.CCOPY(SUBCOB)
000007 //LKED.SYSLMOD DD DISP=SHR,DSN=IBMMFS.MAC.LOAD(COBL)
000008 //SYSPRINT DD SYSOUT=*
000009 //
000009 //* testing comments
//* testing comments
****** **************************** Bottom of Data ************************************
000001 //COBCOMP JOB 'IBMMFS','MAC',CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID
000002 //PROCLIB JCLLIB ORDER=IBMMFS.PRC.COBL
000003 //STEP1 EXEC IGYWCL,
000004 // PARM.COBL='LIB,APOST,XREF,MAP,OFFSET'
000005 //COBL.SYSIN DD DISP=SHR,DSN=IBMMFS.MAC.SOURCE(COBL)
000006 //LKED.SYSLIB DD DISP=SHR,DSN=IBMMFS.MAC.CCOPY(SUBCOB)
000007 //LKED.SYSLMOD DD DISP=SHR,DSN=IBMMFS.MAC.LOAD(COBL)
000008 //SYSPRINT DD SYSOUT=*
000009 //
000009 //* testing comments
//* testing comments
****** **************************** Bottom of Data ************************************