Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

How to ... Part 2
Hi to everybody,
very very thank's for your reply about this problem!!!!!

Two words about me.... i'm not a professional programmer, i'm programming
just for my need and for fun (as a hobby); i learned pascal, and now under
windows i'm using delphi 6.0 a good tool (to do something under windows)
with a tons of utilities, source code and much more on the net.
So, the question is simple .... why i need to move to cobol ???
The big, big, big pitty of delphi is the DB managment; In the specific
metter ther is a program (written in acucobol) that work with a big (for me
is big) database with more than 700.000 records, i need to access to this
database (index field too) get some information (like new price, remove from
the market ecc...) and store that in a new file; The main  problem is the
record structure, an acucobol programmer told me that with this language
(and generally speaking with cobol) when open the db files (or index file),
acucobol is able to detect the correct structure (it is true????).
Here the problem, we (me and the delphi guru) don't know how to connect the
delphi core program with this database.
For this reason i thought to learn cobol, and the best way to learn is try
to do something (hello world, display one form or screen ecc..) ....... but
is not so easy as seem.

I need to study more about this language, before post another question (i
did not understand any source code !!!!!).
I'm very sorry for this.

Thank's for your help, Ciao, Daniele



Report this thread to moderator Post Follow-up to this message
Old Post
Daniele F.
07-13-06 11:55 PM


Re: How to ... Part 2
Daniele F. wrote:
> Hi to everybody,
>     very very thank's for your reply about this problem!!!!!
>
> Two words about me.... i'm not a professional programmer, i'm
> programming just for my need and for fun (as a hobby); i learned
> pascal, and now under windows i'm using delphi 6.0 a good tool (to do
> something under windows) with a tons of utilities, source code and
> much more on the net. So, the question is simple .... why i need to move
> to cobol ???
> The big, big, big pitty of delphi is the DB managment; In the specific
> metter ther is a program (written in acucobol) that work with a big
> (for me is big) database with more than 700.000 records, i need to
> access to this database (index field too) get some information (like
> new price, remove from the market ecc...) and store that in a new
> file; The main  problem is the record structure, an acucobol
> programmer told me that with this language (and generally speaking
> with cobol) when open the db files (or index file), acucobol is able
> to detect the correct structure (it is true????). Here the problem, we (me
> and the delphi guru) don't know how to
> connect the delphi core program with this database.
> For this reason i thought to learn cobol, and the best way to learn
> is try to do something (hello world, display one form or screen
> ecc..) ....... but is not so easy as seem.
>
> I need to study more about this language, before post another
> question (i did not understand any source code !!!!!).
> I'm very sorry for this.
>
> Thank's for your help, Ciao, Daniele

Nah, you're doing swell.

Just like most things in life, the hard part is getting started. After you
get your COBOL compiler running in your environment, things get easier. Then
you have only the language itself to perplex you.



Report this thread to moderator Post Follow-up to this message
Old Post
HeyBub
07-13-06 11:55 PM


Re: How to ... Part 2
Daniele F. wrote:
> Hi to everybody,
>      very very thank's for your reply about this problem!!!!!
>
> For this reason i thought to learn cobol, and the best way to learn is try
> to do something (hello world, display one form or screen ecc..) ....... bu
t
> is not so easy as seem.
>
> I need to study more about this language, before post another question (i
> did not understand any source code !!!!!).
> I'm very sorry for this.
>
> Thank's for your help, Ciao, Daniele

A "Hello World" program can be found at:

http://www.automatedsoftwaretools.com/MFATC


Report this thread to moderator Post Follow-up to this message
Old Post
Alistair
07-13-06 11:55 PM


Re: How to ... Part 2
Daniele F. wrote:
> Hi to everybody,
>      very very thank's for your reply about this problem!!!!!
>
> The big, big, big pitty of delphi is the DB managment; In the specific
> metter ther is a program (written in acucobol) that work with a big (for m
e
> is big) database with more than 700.000 records, i need to access to this
> database (index field too) get some information (like new price, remove fr
om
> the market ecc...) and store that in a new file; The main  problem is the
> record structure, an acucobol programmer told me that with this language
> (and generally speaking with cobol) when open the db files (or index file)
,
> acucobol is able to detect the correct structure (it is true????).
> Here the problem, we (me and the delphi guru) don't know how to connect th
e
> delphi core program with this database.

I presume that Delphi would use SQL CONNECT to link to the database. I
am not an expert in SQL so can not help you any further.


Report this thread to moderator Post Follow-up to this message
Old Post
Alistair
07-13-06 11:55 PM


Re: How to ... Part 2
"Daniele F." <daniele.fare@libero.it> wrote in message
news:44b66910$0$32148$4fafbaef@reader1.news.tin.it...
> In the specific metter ther is a program (written in acucobol) that work
> with a big (for me is big) database with more than 700.000 records, i need
> to access to this database (index field too) get some information (like
> new price, remove from the market ecc...) and store that in a new file;
> The main  problem is the record structure, an acucobol programmer told me
> that with this language (and generally speaking with cobol) when open the
> db files (or index file), acucobol is able to detect the correct structure
> (it is true????).
> Here the problem, we (me and the delphi guru) don't know how to connect
> the delphi core program with this database.

Is "the database" a file sitting on your haddrive, or a server? Usually
when someone talks about databases, they mean the latter: there's a server
running on the computer (e.g. MySQL) which accepts connections (perhaps via
sockets). Your program would connect via that socket and send SQL queries
and receive results. The server takes care of storing the data, so you don't
need to worry about file formats or anything like that.

If it's just a plain file, then you *DO* have to worry about file
formats. I'm don't have much experience with COBOL, but from my
understanding, no, your COBOL environment will not automatically "detect"
the correct structure. The structure is declaratively described in the FILE
SECTION of the DATA DIVISION.

- Oliver


Report this thread to moderator Post Follow-up to this message
Old Post
Oliver Wong
07-13-06 11:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 03:21 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.