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



Answers inserted....

>>> vitekg@ctpf.org 03/05/02 07:43AM >>>
--
[ Picked text/plain from multipart/alternative ]
I have what I hope are some basic questions re: creating/maintaining
files created and used by SQL.

Some background work performed thus far:
A) CREATE TABLE  results in  PF's
B) Create index results in a LF's
C) Have run some SQL against DDS created files,( input & output) no
problems so far. Very simple functions however.

Questions:
1) Can RPG, RPGII, RPGIV be used to populate tables created via SQL,
some  having Indexes?

Yes, you will have to rename the format to keep the compiler happy.

2) Some values such as TIMESTAMP do not exist in RPGII. I assume these
can be built to look like a SQL or RPGIV results. The reason for asking
this is that I would like to use a conversion package to populate SQL
created files from existing AS/400 database files. This package
generates RPGII programs to move the data around, not RPGIV, but the
package has very many "Conversion Task Features" that make it a good
candidate for a file conversion tool.

Clarify

3) What is the value of Numeric NULL?  Alpha NULL?

Not Know & Not Known (i.e. NULL = NOT KNOWN)

4) Is there any way to print  Filename alisas's generated for long names
by Create Table? DSPFD to an Outfile does not seem to do it. (V3R2)

Did you check the system tables? i.e QADBXREF


The bottom line is that I would like to use this file conversion package
which generates RPGII programs to perform conversions from DDS created
database files to SQL created files. An alternative method is to use
RPGIV, as this would give access to all features such as TIMESTAMP, DATE
stuff, etc. The last alternative which should eliminate all questions is
to utilize SQL to Read and write the files.

The resulting application system will be a totally SQL client server
system. However, we expect to be able to access for input, any of the
sql files using RPGIV for inquiry and reporting purposes. We do not
expect to update the SQL files with anything other than SQL statements,
but it would be nice to know that we could if there was a need to do so
( like a programmer not being familiar with SQL).

RPGIV is a great language. I am assuming we will not eliminate its
usefulness by going to a SQL based system. Any comments appreciated.

Regards,

George Vitek
--

_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.