Dictionary to SQL
Johnson, Harold A EDUC:EX
Harold.A.Johnson@gems1.gov.bc.ca
Fri, 4 Feb 2005 14:15:18 -0800
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C50B06.8044AC81
Content-Type: text/plain;
charset="iso-8859-1"
Sorry, but these commands don't react the way that you are describing. I'm
on OpenVMS 7.3 using an "Oracle" (yes, I was aware of that) RDB database, PH
v710g1.
This is what happens:
$QSHOW
>set lang sql (ok)
>gene database access_error_file (which is an RMS file defined in the
dictionary)
Default device is disc file QSHOGEN.SQL
>exit
The resulting QSHOGEN.SQL file is empty.
?
thnx
-----Original Message-----
From: powerh-l-admin@lists.sowder.com
[mailto:powerh-l-admin@lists.sowder.com]On Behalf Of Goparaju, Vidyasagar
Sent: 2005 February 4 1:08 PM
To: 'Robert Edis'; PowerHouse List
Subject: RE: Dictionary to SQL
It is generated based on Record definition of an RMS file.
Sagar
-----Original Message-----
From: powerh-l-admin@lists.sowder.com [
mailto:powerh-l-admin@lists.sowder.com
<mailto:powerh-l-admin@lists.sowder.com> ]On Behalf Of Robert Edis
Sent: Friday, February 04, 2005 2:30 PM
To: PowerHouse List
Subject: RE: Dictionary to SQL
Sagar
If you mean the RDBMS "Rdb" it IS an Oracle database!
Has been for 10 years.
Did you run this against a record definition of an RMS
file or a RDBMS database definition?
Blue
--- "Goparaju, Vidyasagar"
<VGoparaju@tradepointsystems.com> wrote:
> You have to provide dictionary file/record name not
> dictionary name.
>
> For example, you have a file/record called EMPLOYEE
> in your dictionary.
>
> QSHOW
> >SET LANG SQL
> >GENE DATABASE EMPLOYEE
>
> Will create QSHOW.TXT file in your directory with
> the following information:
>
> Create Schema Authorization EOD:EMPDAT.DAT -->
> something for RDB. Not valid
> on Oracle Database.
>
> Create Table EMPLOYEE
> (
> EMP_NO Decimal(10) Not Null,
> EMP_NAME Char(30) Not Null,
> MODIFIED_BY Char(12) Not Null,
> DATE_UPDATED Decimal(8) Not Null,
> TIME_UPDATED Decimal(4) Not Null,
> FILLER Char(39) Not Null
> )
> Create Unique Asc Index EMP_NO_KEY
> On EMPLOYEE
> (
> EMP_NO
> )
>
>
> Sagar
>
>
>
>
> -----Original Message-----
> From: Johnson, Harold A EDUC:EX
> [ mailto:Harold.A.Johnson@gems1.gov.bc.ca
<mailto:Harold.A.Johnson@gems1.gov.bc.ca> ]
> Sent: Thursday, February 03, 2005 1:10 PM
> To: 'Goparaju, Vidyasagar'
> Cc: PowerH List
> Subject: RE: Dictionary to SQL
>
> This isn't documented in QSHOW help - when I try to
> run these commands,
>
> $QSHOW
> >set lang SQL
> >gene database <dict> ? what exactly is this,
> the short form of the
> dictionary in OpenVMS? thnx
> Default device is disc file QSHOGEN.SQL.
> The file
>
AVED$DISK5:[AVED.SFD.APPN.SFA.DEVE.SRC.SQL]QSHOGEN.SQL;
> already
> exists.
> Create new version?y
> *E* No valid files were specified in the GENERATE
> statement.
> > gene all
> *W* GENERATE target is not a relational database.
> >
> -----Original Message-----
> From: Goparaju, Vidyasagar
> [ mailto:VGoparaju@tradepointsystems.com
<mailto:VGoparaju@tradepointsystems.com> ]
> Sent: 2005 February 3 10:44 AM
> To: Johnson, Harold A EDUC:EX
> Cc: PowerH List
> Subject: RE: Dictionary to SQL
> There is an option is QSHOW to create SQL script.
> $QSHOW
> >SET LANG SQL
> * GENE DATABASE <Dictionary file name>
> *
>
> Sagar
> -----Original Message-----
> From: powerh-l-admin@lists.sowder.com [
> mailto:powerh-l-admin@lists.sowder.com
<mailto:powerh-l-admin@lists.sowder.com>
> < mailto:powerh-l-admin@lists.sowder.com
<mailto:powerh-l-admin@lists.sowder.com> > ]On Behalf
> Of Johnson, Harold A
> EDUC:EX
> Sent: Thursday, February 03, 2005 12:33 PM
> To: PowerH List
> Subject: Dictionary to SQL
> Anyone know how to convert a PH Dictionary (OpenVMS)
> to SQL? I think that
> there are 3rd party utilities to do this, but we are
> only doing it once and
> don't want buy anything.
> OR, is there some way to access the dictionary meta
> data and extract it
> directly? As a last resort, we will have to do the
> conversion by hand.
> cheers
> = = = = = = = = = = = = = = = = = = = = = = = = = =
> = =
> Mailing list: powerh-l@lists.sowder.com
> Subscribe: "subscribe" in message body to
> powerh-l-request@lists.sowder.com
> Unsubscribe: "unsubscribe <password>" in message
> body to
> powerh-l-request@lists.sowder.com
> http://lists.sowder.com/mailman/listinfo/powerh-l
<http://lists.sowder.com/mailman/listinfo/powerh-l>
> < http://lists.sowder.com/mailman/listinfo/powerh-l
<http://lists.sowder.com/mailman/listinfo/powerh-l> >
>
> This list is closed, thus to post to the list you
> must be a subscriber.
>
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l@lists.sowder.com
Subscribe: "subscribe" in message body to powerh-l-request@lists.sowder.com
Unsubscribe: "unsubscribe <password>" in message body to
powerh-l-request@lists.sowder.com
http://lists.sowder.com/mailman/listinfo/powerh-l
<http://lists.sowder.com/mailman/listinfo/powerh-l>
This list is closed, thus to post to the list you must be a subscriber.
------_=_NextPart_001_01C50B06.8044AC81
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>RE: Dictionary to SQL</TITLE>
<META content="MSHTML 6.00.2800.1480" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=864391122-04022005><FONT face=Arial color=#0000ff size=2>Sorry,
but these commands don't react the way that you are describing. I'm
on OpenVMS 7.3 using an "Oracle" (yes, I was aware of that) RDB database,
PH v710g1.</FONT></SPAN></DIV>
<DIV><SPAN class=864391122-04022005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=864391122-04022005><FONT face=Arial color=#0000ff size=2>This
is what happens:</FONT></SPAN></DIV>
<DIV><SPAN class=864391122-04022005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=864391122-04022005><FONT face=Arial color=#0000ff
size=2>$QSHOW</FONT></SPAN></DIV>
<DIV><SPAN class=864391122-04022005><FONT face=Arial color=#0000ff
size=2>>set lang sql (ok)</FONT></SPAN></DIV>
<DIV><SPAN class=864391122-04022005><FONT face=Arial color=#0000ff
size=2>>gene database access_error_file (which is an RMS file
defined in the dictionary)<BR></FONT></SPAN><SPAN class=864391122-04022005><FONT
face=r_ansi size=2>Default device is disc file QSHOGEN.SQL</FONT></SPAN></DIV>
<DIV><SPAN class=864391122-04022005><FONT face=r_ansi size=2><SPAN
class=864391122-04022005><FONT face=Arial color=#0000ff
size=2>>exit</FONT></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=864391122-04022005><FONT face=r_ansi size=2><SPAN
class=864391122-04022005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=864391122-04022005><FONT face=r_ansi size=2><SPAN
class=864391122-04022005><FONT face=Arial color=#0000ff size=2>The resulting
QSHOGEN.SQL file is empty.</FONT></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=864391122-04022005><FONT face=r_ansi size=2><SPAN
class=864391122-04022005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=864391122-04022005><FONT face=r_ansi size=2><SPAN
class=864391122-04022005><FONT face=Arial color=#0000ff
size=2>?</FONT></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=864391122-04022005><FONT face=Arial color=#0000ff size=2><SPAN
class=864391122-04022005></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=864391122-04022005><FONT face=Arial color=#0000ff size=2><SPAN
class=864391122-04022005>thnx</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=864391122-04022005><FONT face=Arial color=#0000ff size=2><SPAN
class=864391122-04022005></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=864391122-04022005><FONT face=r_ansi size=2><SPAN
class=864391122-04022005><FONT face=Arial color=#0000ff size=2> </DIV>
<DIV><BR></DIV></FONT></SPAN></FONT></SPAN>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
powerh-l-admin@lists.sowder.com [mailto:powerh-l-admin@lists.sowder.com]<B>On
Behalf Of </B>Goparaju, Vidyasagar<BR><B>Sent:</B> 2005 February 4 1:08
PM<BR><B>To:</B> 'Robert Edis'; PowerHouse List<BR><B>Subject:</B> RE:
Dictionary to SQL<BR><BR></FONT></DIV>
<P><FONT size=2>It is generated based on Record definition of an RMS
file.</FONT> </P>
<P><FONT size=2>Sagar</FONT> </P>
<P><FONT size=2>-----Original Message-----</FONT> <BR><FONT size=2>From:
powerh-l-admin@lists.sowder.com [<A
href="mailto:powerh-l-admin@lists.sowder.com">mailto:powerh-l-admin@lists.sowder.com</A>]On
Behalf Of Robert Edis</FONT> <BR><FONT size=2>Sent: Friday, February 04, 2005
2:30 PM</FONT> <BR><FONT size=2>To: PowerHouse List</FONT> <BR><FONT
size=2>Subject: RE: Dictionary to SQL</FONT> </P>
<P><FONT size=2>Sagar</FONT> </P>
<P><FONT size=2>If you mean the RDBMS "Rdb" it IS an Oracle database!</FONT>
<BR><FONT size=2>Has been for 10 years.</FONT> </P>
<P><FONT size=2>Did you run this against a record definition of an RMS</FONT>
<BR><FONT size=2>file or a RDBMS database definition?</FONT> </P>
<P><FONT size=2>Blue</FONT> </P>
<P><FONT size=2>--- "Goparaju, Vidyasagar"</FONT> <BR><FONT
size=2><VGoparaju@tradepointsystems.com> wrote:</FONT> </P>
<P><FONT size=2>> You have to provide dictionary file/record name
not</FONT> <BR><FONT size=2>> dictionary name.</FONT> <BR><FONT size=2>>
</FONT><BR><FONT size=2>> For example, you have a file/record called
EMPLOYEE</FONT> <BR><FONT size=2>> in your dictionary.</FONT> <BR><FONT
size=2>> </FONT><BR><FONT size=2>> QSHOW</FONT> <BR><FONT size=2>>
>SET LANG SQL</FONT> <BR><FONT size=2>> >GENE DATABASE
EMPLOYEE</FONT> <BR><FONT size=2>> </FONT><BR><FONT size=2>> Will create
QSHOW.TXT file in your directory with</FONT> <BR><FONT size=2>> the
following information:</FONT> <BR><FONT size=2>> </FONT><BR><FONT
size=2>> Create Schema Authorization EOD:EMPDAT.DAT --></FONT> <BR><FONT
size=2>> something for RDB. Not valid</FONT> <BR><FONT size=2>> on
Oracle Database.</FONT> <BR><FONT size=2>> </FONT><BR><FONT size=2>>
Create Table EMPLOYEE</FONT> <BR><FONT size=2>> (</FONT>
<BR><FONT size=2>> EMP_NO
Decimal(10) Not Null,</FONT> <BR><FONT
size=2>> EMP_NAME Char(30) Not
Null,</FONT> <BR><FONT size=2>>
MODIFIED_BY Char(12) Not Null,</FONT> <BR><FONT
size=2>> DATE_UPDATED Decimal(8)
Not Null,</FONT> <BR><FONT
size=2>> TIME_UPDATED Decimal(4)
Not Null,</FONT> <BR><FONT
size=2>> FILLER Char(39) Not
Null</FONT> <BR><FONT size=2>> )</FONT> <BR><FONT
size=2>> Create Unique Asc Index
EMP_NO_KEY</FONT> <BR><FONT
size=2>> On EMPLOYEE</FONT>
<BR><FONT size=2>> (</FONT> <BR><FONT
size=2>> EMP_NO</FONT> <BR><FONT
size=2>> )</FONT> <BR><FONT size=2>> </FONT><BR><FONT
size=2>></FONT> <BR><FONT size=2>> Sagar</FONT> <BR><FONT size=2>>
</FONT><BR><FONT size=2>> </FONT><BR><FONT size=2>> </FONT><BR><FONT
size=2>> </FONT><BR><FONT size=2>> -----Original Message-----</FONT>
<BR><FONT size=2>> From: Johnson, Harold A EDUC:EX</FONT> <BR><FONT
size=2>> [<A
href="mailto:Harold.A.Johnson@gems1.gov.bc.ca">mailto:Harold.A.Johnson@gems1.gov.bc.ca</A>]</FONT>
<BR><FONT size=2>> Sent: Thursday, February 03, 2005 1:10 PM</FONT>
<BR><FONT size=2>> To: 'Goparaju, Vidyasagar'</FONT> <BR><FONT size=2>>
Cc: PowerH List</FONT> <BR><FONT size=2>> Subject: RE: Dictionary to
SQL</FONT> <BR><FONT size=2>> </FONT><BR><FONT size=2>> This isn't
documented in QSHOW help - when I try to</FONT> <BR><FONT size=2>> run
these commands,</FONT> <BR><FONT size=2>> </FONT><BR><FONT size=2>>
$QSHOW</FONT> <BR><FONT size=2>> >set lang SQL</FONT> <BR><FONT
size=2>> >gene database <dict> ?
what exactly is this,</FONT> <BR><FONT size=2>> the short form of
the</FONT> <BR><FONT size=2>> dictionary in OpenVMS?
thnx</FONT> <BR><FONT size=2>> Default device is disc file
QSHOGEN.SQL.</FONT> <BR><FONT size=2>> The file</FONT> <BR><FONT
size=2>></FONT> <BR><FONT
size=2>AVED$DISK5:[AVED.SFD.APPN.SFA.DEVE.SRC.SQL]QSHOGEN.SQL;</FONT>
<BR><FONT size=2>> already</FONT> <BR><FONT size=2>> exists.</FONT>
<BR><FONT size=2>> Create new version?y</FONT> <BR><FONT size=2>> *E* No
valid files were specified in the GENERATE</FONT> <BR><FONT size=2>>
statement.</FONT> <BR><FONT size=2>> > gene all</FONT> <BR><FONT
size=2>> *W* GENERATE target is not a relational database.</FONT> <BR><FONT
size=2>> ></FONT> <BR><FONT size=2>> -----Original
Message-----</FONT> <BR><FONT size=2>> From: Goparaju, Vidyasagar</FONT>
<BR><FONT size=2>> [<A
href="mailto:VGoparaju@tradepointsystems.com">mailto:VGoparaju@tradepointsystems.com</A>]</FONT>
<BR><FONT size=2>> Sent: 2005 February 3 10:44 AM</FONT> <BR><FONT
size=2>> To: Johnson, Harold A EDUC:EX</FONT> <BR><FONT size=2>> Cc:
PowerH List</FONT> <BR><FONT size=2>> Subject: RE: Dictionary to SQL</FONT>
<BR><FONT size=2>> There is an option is QSHOW to create SQL script.</FONT>
<BR><FONT size=2>> $QSHOW</FONT> <BR><FONT
size=2>> >SET LANG SQL</FONT>
<BR><FONT size=2>> * GENE DATABASE <Dictionary file name></FONT>
<BR><FONT size=2>> *</FONT> <BR><FONT size=2>> </FONT><BR><FONT
size=2>> Sagar</FONT> <BR><FONT size=2>> -----Original
Message-----</FONT> <BR><FONT size=2>> From:
powerh-l-admin@lists.sowder.com [</FONT> <BR><FONT size=2>> <A
href="mailto:powerh-l-admin@lists.sowder.com">mailto:powerh-l-admin@lists.sowder.com</A></FONT>
<BR><FONT size=2>> <<A
href="mailto:powerh-l-admin@lists.sowder.com">mailto:powerh-l-admin@lists.sowder.com</A>>
]On Behalf</FONT> <BR><FONT size=2>> Of Johnson, Harold A</FONT> <BR><FONT
size=2>> EDUC:EX</FONT> <BR><FONT size=2>> Sent: Thursday, February 03,
2005 12:33 PM</FONT> <BR><FONT size=2>> To: PowerH List</FONT> <BR><FONT
size=2>> Subject: Dictionary to SQL</FONT> <BR><FONT size=2>> Anyone
know how to convert a PH Dictionary (OpenVMS)</FONT> <BR><FONT size=2>> to
SQL? I think that</FONT> <BR><FONT size=2>> there are 3rd party
utilities to do this, but we are</FONT> <BR><FONT size=2>> only doing it
once and</FONT> <BR><FONT size=2>> don't want buy anything.</FONT>
<BR><FONT size=2>> OR, is there some way to access the dictionary
meta</FONT> <BR><FONT size=2>> data and extract it</FONT> <BR><FONT
size=2>> directly? As a last resort, we will have to do
the</FONT> <BR><FONT size=2>> conversion by hand.</FONT> <BR><FONT
size=2>> cheers</FONT> <BR><FONT size=2>> = = = = = = = = = = = = = = =
= = = = = = = = = = =</FONT> <BR><FONT size=2>> = =</FONT> <BR><FONT
size=2>> Mailing list: powerh-l@lists.sowder.com</FONT> <BR><FONT
size=2>> Subscribe: "subscribe" in message body to</FONT> <BR><FONT
size=2>> powerh-l-request@lists.sowder.com</FONT> <BR><FONT size=2>>
Unsubscribe: "unsubscribe <password>" in message</FONT> <BR><FONT
size=2>> body to</FONT> <BR><FONT size=2>>
powerh-l-request@lists.sowder.com</FONT> <BR><FONT size=2>> <A
href="http://lists.sowder.com/mailman/listinfo/powerh-l"
target=_blank>http://lists.sowder.com/mailman/listinfo/powerh-l</A></FONT>
<BR><FONT size=2>> <<A
href="http://lists.sowder.com/mailman/listinfo/powerh-l"
target=_blank>http://lists.sowder.com/mailman/listinfo/powerh-l</A>></FONT>
<BR><FONT size=2>></FONT> <BR><FONT size=2>> This list is closed, thus
to post to the list you</FONT> <BR><FONT size=2>> must be a
subscriber.</FONT> <BR><FONT size=2>></FONT> </P>
<P><FONT size=2>= = = = = = = = = = = = = = = = = = = = = = = = = = = =</FONT>
<BR><FONT size=2>Mailing list: powerh-l@lists.sowder.com</FONT> <BR><FONT
size=2>Subscribe: "subscribe" in message body to
powerh-l-request@lists.sowder.com</FONT> <BR><FONT size=2>Unsubscribe:
"unsubscribe <password>" in message body to
powerh-l-request@lists.sowder.com</FONT> <BR><FONT size=2><A
href="http://lists.sowder.com/mailman/listinfo/powerh-l"
target=_blank>http://lists.sowder.com/mailman/listinfo/powerh-l</A></FONT>
<BR><FONT size=2>This list is closed, thus to post to the list you must be a
subscriber.</FONT> </P></BLOCKQUOTE></BODY></HTML>
------_=_NextPart_001_01C50B06.8044AC81--