× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello Rick,

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"


Roman




"Rick Beethe" <rick.beethe@xxxxxxxxxxxx>
Sent by: cobol400-l-bounces@xxxxxxxxxxxx
23.08.2007 17:04
Please respond to
COBOL Programming on the iSeries/AS400 <cobol400-l@xxxxxxxxxxxx>


To
<cobol400-l@xxxxxxxxxxxx>
cc

Subject
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.


Rick Beethe
Manager of Application Development
Computer Research, Inc.
10170 Church Ranch Way, Suite 300
Westminster, CO 80021-6061
303.297.9200 x225


-----Original Message-----
-------------------------------------------------------------------
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
specified task.

Regards

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.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.