gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [open-cobol-list] Anybody use emacs to code COBOL?


From: David Essex
Subject: Re: [open-cobol-list] Anybody use emacs to code COBOL?
Date: Thu, 06 Aug 2009 18:46:59 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040618

Kevin Monceaux wrote:
 > ...
What little I do with COBOL is usually via
ISPF's editor under zOS. I work as an IBM mainframe operator. That
reminds me, I almost forgot about THE - The Hessling Editor.  If I
remember correctly it can be made to look/act much like ISPF's editor.
Maybe I should give it another try.

Actually THE (The Hessling Editor) is similar to Xedit, a mainframe
editor found on VM/CMS.
The editor is similar to the ISPF editor.

If you are looking for a full ISPF environment (UN*X, WIn32), you can find it here [1].

> I read in one of the COBOL tutorials that I scooped of
> the 'net, about using a `make' with an appropriate Makefile,
> to do as you suggest.

Attached (Makefile) is a sample, single and multi-program, make file
which can be used a template.

Hope this helps.

1) MIZUMAKI-machi - ISPF like editor
http://www.geocities.jp/sakachin2/index.htm

#
# 
#

CCX=gcc
COB=cobc
ASM=as
RM=rm -f

COPYBOOKS= -I../copybooks -I.
INCLUDES= -I/usr/local/include
LIBS=-L/usr/lib -lcob -lm -lvbisam -lgmp -lncurses -ldl
EXTRALIBS=-labc
LDFLAGS=
COBFLAGS=-x -v -free -W $(COPYBOOKS)
CCXFLAGS=-g ${INCLUDES}

SRC01 = t90805a.cob
SRC02 = t90805b.cob
 
OBJ01 = $(SRC01:.cob=.o)
OBJ02 = $(SRC02:.cob=.o)
OBJS =  $(OBJ01)

PROG01 = t90805a
PROG02 = t90805b
PROGS =  $(PROG01) $(PROG02)

# Rules for compiling COBOL sources
#
.SUFFIXES: .cob .cbl 
.cob:
        $(COB) $(COBFLAGS) $< -o $@ $(EXTRALIBS)
.cbl:
        $(COB) $(COBFLAGS) $< -o $@ $(EXTRALIBS)

all: ${PROGS}

#${PROG01}: ${SRC01} 
${PROG01}:  

${PROG02}: 
        $(COB) $(COBFLAGS) ${SRC01} ${SRC02} $< -o $@ $(EXTRALIBS)
#       strip $@

clean:
        @${RM} $(PROGS) $(OBJS) *.lis *.s *.i core


reply via email to

[Prev in Thread] Current Thread [Next in Thread]