Re: Embedded SQL, PL/SQL in Cobol
- From: "Chris" <ctaliercio@xxxxxxxxx>
- Date: 29 Apr 2005 07:57:39 -0700
Jeff,
Looking at this quickly, I'd say it's a prime candidate for Embedded
SQL.
The call to "DBOPEN" would be replaced by a SQL connect statement.
The call to "DBREAD" would be replaced by a SQL select statement.
The call to "DBFIND" would be replaced by a SQL cursor declaration and
open statement.
The call to "DBNEXT" would be replaced by a SQL fetch statement (from
your previously established cursor).
The only area you will run into a snag is your call to DBGET with
mode6. There is no "read previous" function in Oracle (not 100% sure
about other databases). What I would do in this circumstance is simply
sort the cursor in the proper decending sequence (time, transactions
nbr, etc) so the history comes out in sequence when simply using "read
next" (FETCH) logic.
I hope this helps point you in the right direction.
Chris
.
- Follow-Ups:
- Re: Embedded SQL, PL/SQL in Cobol
- From: Jeff
- Re: Embedded SQL, PL/SQL in Cobol
- References:
- Embedded SQL, PL/SQL in Cobol
- From: Jeff
- Re: Embedded SQL, PL/SQL in Cobol
- From: Frederico Fonseca
- Re: Embedded SQL, PL/SQL in Cobol
- From: Jeff
- Embedded SQL, PL/SQL in Cobol
- Prev by Date: Re: Are you as polite and diplomatic as COBOL?...
- Next by Date: Re: Embedded SQL, PL/SQL in Cobol
- Previous by thread: Re: Embedded SQL, PL/SQL in Cobol
- Next by thread: Re: Embedded SQL, PL/SQL in Cobol
- Index(es):
Relevant Pages
|