Re: mf cobol line sequetial sequential
- From: "ribjo" <ribjopabra@xxxxxxxxx>
- Date: 18 Oct 2006 09:53:04 -0700
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
.
- References:
- mf cobol line sequetial sequential
- From: ribjo
- Re: mf cobol line sequetial sequential
- From: HeyBub
- mf cobol line sequetial sequential
- Prev by Date: Re: mf cobol line sequetial sequential
- Next by Date: Fujitsu student cobol compiler, link error? Please help
- Previous by thread: Re: mf cobol line sequetial sequential
- Next by thread: Re: mf cobol line sequetial sequential
- Index(es):
Relevant Pages
|