Re: mf cobol line sequetial sequential




HeyBub wrote:
ribjo wrote:
Hello all,

I'm working with hp-ux on IA64, mf cobol server express 4 on mainframe
migrations.

The reports (files) resulting from cobol programs look great on
printers! But...

When the last element of the record is pic x, mf cobol truncates on
spaces!

We are working with line sequential and the problem is that when the
output file is data (input for another program) we need
"line-sequential-fixed-record"! How can we get that?

Next I present our compile script zoomed to cob32:
--cut--
cob32 \
-C SEQUENTIAL=LINE \
-C PERFORM-TYPE=COB370 \
-C IBMCOMP \
-C SPZERO \
-C nolist \
-C progid-comment \
-C assign=external \
-C NOBOUND \
-C OLDNEXTSENTENCE \
-x -g -U -o $1.bin $1.cob \
-L${ORACLE_HOME}/lib32/ \
${ORACLE_HOME}/precomp/lib32/cobsqlintf.o \
/usr/local/ditic/vispf/vispf.o \
-lclntsh -lm -lc \
`cat ${ORACLE_HOME}/lib32/ldflags` \
`cat ${ORACLE_HOME}/lib32/sysliblist`
--cut--

Thanks guys!

http://www.microfocus.com/Resources/Newsletters/SupportLine/20050101-007.asp

See asc2ebc.zip in
http://supportline.microfocus.com/examplesandutilities/nesamp.asp

See Thane Hubbel in
http://www.cobug.com/cobug/docs/codesamples0020.html

and 53,000 other hits in Google on [micro focus cobol line sequential]

Thanks!

I found how to make LINE SEQUENTIAL to work as
"record-line-sequential".
You set up the EXTFH file handler config and my file has this content:
---cut---
[XFH-DEFAULT]
# os ficheiros LINE SEQUENTIAL NAO TRIMAM
STRIPSPACE=OFF
# os fcheiros de INPUT nao aplicam lock
OPENINPUTSHARED=ON
# no read, faz o filler com espaços
SPACEFILL=ON
# melhor performance nos reads
READSEMA=OFF
--cut--

I took the opportunity and made some tuning, hoping to get better
performance on reads as well as better behaviour.
Again, this is not coding, this is migration from mainframe to *nix!

Regards

.



Relevant Pages

  • Comments on Re: Is there a mainframe skills shortage?
    ... The following posting is a comment on an article about mainframe ... believes both COBOL and mainframes are on life support and that there ... this Gartner report failed to identify which specific skills were ... this mainframe skills shortage problem is geographical; ...
    (bit.listserv.ibm-main)
  • Re: Contrarian view of COBOL
    ... When the mainframe is replaced, so will COBOL be. ... z, and z/OS itself will run perl, Java, Apache HTTP server, etc. ... The success of ABAP is tied in with the success of SAP. ...
    (comp.lang.cobol)
  • Re: Could this save COBOL?
    ... about OO and the mainframe. ... COBOL, unlike the other languages was not a major part of most ... to a database. ... The Dot NET environment is all ...
    (comp.lang.cobol)
  • Re: Is there a mainframe skills shortage?
    ... The logic is that as baby-boomer mainframe coders and administrators leave ... their mainframe environments or maintaining legacy COBOL code. ... this Gartner report failed to identify which specific skills were ... Administrators and managers (with CICS, zOS, and systems management ...
    (comp.lang.cobol)
  • Re: Further discussion on "Something has to be maintained" and lack of OO acceptance.
    ... I noted there is much concern over "documentation" in some ... creating and storing documentation than does much of the IBM mainframe ... The resistance came from the Priests of COBOL, ...
    (comp.lang.cobol)