I had the same problem as you two years ago. In that time we started to
build our Front Office, which is a Java web application and we needed to
call for the specified tasks our existing COBOL objects. We have soon
found out, that the option INFOSTMF of the command CRTBNDCBL for
generating of the PCML.-interface was not enough good for our needs,
because every time we had to adapt the resulting PCML streamfile manually,
e.g. the init= ..etc.. and it was very very time wasting. /The other
thing was that our COBOL-oobjects are something special, so the PCML
generated by CRTBNDCBL was not suitable/
Therefore I wrote a PCML-generator which generates the PCML-streamfile
from the COBOL-source.
But If you only need to add the inits to your pcml, you can generate PCML
with the compiler and then process with a simple program the resulting
stream file replacing all
type="char" by type="char" init =" "
type="zoned" by type="zoned" init="0"
type="packed" by type="packed" init="0"
"Rick Beethe" <rick.beethe@xxxxxxxxxxxx>
Sent by: cobol400-l-bounces@xxxxxxxxxxxx
Please respond to
COBOL Programming on the iSeries/AS400 <cobol400-l@xxxxxxxxxxxx>
Re: [COBOL400-L] COBOL and PCML and OUTPUT only fields
Thanks for the tip on the init! I've passed it along.
What we are striving for is a hands-off type of approach so a developer
can go in to the COBOL, make changes, generate the PCML and not have to
go in and manually edit the PCML after compiling the COBOL. Especially
since it could be a completely different developer with little or no
knowledge of the application on the java side.
Manager of Application Development
Computer Research, Inc.
10170 Church Ranch Way, Suite 300
Westminster, CO 80021-6061
The fields in PCML are not implicit initialized. To initialize them
explicitely, you can use init-keyword in your PCML, i.e.
init = " " for chars and
init= "0" for packed or zoned
So your Java programmer does not have to initialize all fields.
He/She have only set the fields he need to call the COBOL-object for
Mgr. Ing. Roman Mikl??
?sek informa?n?ch technol?gi?
Prv? stavebn? sporite?na a.s.
Bajkalsk? 30, P.O.Box 48
829 48 Bratislava 25
As an Amazon Associate we earn from qualifying purchases.