Dictionary to SQL

Goparaju, Vidyasagar VGoparaju@tradepointsystems.com
Fri, 4 Feb 2005 16:08:01 -0500


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_01C50AFD.9BF82D06
Content-Type: text/plain;
	charset="iso-8859-1"

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]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]
> 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]
> 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> ]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>
>
> 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
This list is closed, thus to post to the list you must be a subscriber.

------_=_NextPart_001_01C50AFD.9BF82D06
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2657.73">
<TITLE>RE: Dictionary to SQL</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>It is generated based on Record definition of an RMS =
file.</FONT>
</P>

<P><FONT SIZE=3D2>Sagar</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: powerh-l-admin@lists.sowder.com [<A =
HREF=3D"mailto:powerh-l-admin@lists.sowder.com">mailto:powerh-l-admin@li=
sts.sowder.com</A>]On Behalf Of Robert Edis</FONT>
<BR><FONT SIZE=3D2>Sent: Friday, February 04, 2005 2:30 PM</FONT>
<BR><FONT SIZE=3D2>To: PowerHouse List</FONT>
<BR><FONT SIZE=3D2>Subject: RE: Dictionary to SQL</FONT>
</P>

<P><FONT SIZE=3D2>Sagar</FONT>
</P>

<P><FONT SIZE=3D2>If you mean the RDBMS &quot;Rdb&quot; it IS an Oracle =
database!</FONT>
<BR><FONT SIZE=3D2>Has been for 10 years.</FONT>
</P>

<P><FONT SIZE=3D2>Did you run this against a record definition of an =
RMS</FONT>
<BR><FONT SIZE=3D2>file or a RDBMS database definition?</FONT>
</P>

<P><FONT SIZE=3D2>Blue</FONT>
</P>

<P><FONT SIZE=3D2>--- &quot;Goparaju, Vidyasagar&quot;</FONT>
<BR><FONT SIZE=3D2>&lt;VGoparaju@tradepointsystems.com&gt; =
wrote:</FONT>
</P>

<P><FONT SIZE=3D2>&gt; You have to provide dictionary file/record name =
not</FONT>
<BR><FONT SIZE=3D2>&gt; dictionary name.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; For example, you have a file/record called =
EMPLOYEE</FONT>
<BR><FONT SIZE=3D2>&gt; in your dictionary.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; QSHOW</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;SET LANG SQL</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;GENE DATABASE EMPLOYEE</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Will create QSHOW.TXT file in your directory =
with</FONT>
<BR><FONT SIZE=3D2>&gt; the following information:</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Create Schema Authorization EOD:EMPDAT.DAT =
--&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; something for RDB. Not valid</FONT>
<BR><FONT SIZE=3D2>&gt; on Oracle Database.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Create Table EMPLOYEE</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp; (</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
EMP_NO Decimal(10) Not Null,</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
EMP_NAME Char(30) Not Null,</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
MODIFIED_BY Char(12) Not Null,</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
DATE_UPDATED Decimal(8) Not Null,</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
TIME_UPDATED Decimal(4) Not Null,</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
FILLER Char(39) Not Null</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp; )</FONT>
<BR><FONT SIZE=3D2>&gt; Create Unique =
Asc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Index EMP_NO_KEY</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; On =
EMPLOYEE</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp; (</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
EMP_NO</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp; )</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; Sagar</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; -----Original Message-----</FONT>
<BR><FONT SIZE=3D2>&gt; From: Johnson, Harold A EDUC:EX</FONT>
<BR><FONT SIZE=3D2>&gt; [<A =
HREF=3D"mailto:Harold.A.Johnson@gems1.gov.bc.ca">mailto:Harold.A.Johnson=
@gems1.gov.bc.ca</A>]</FONT>
<BR><FONT SIZE=3D2>&gt; Sent: Thursday, February 03, 2005 1:10 =
PM</FONT>
<BR><FONT SIZE=3D2>&gt; To: 'Goparaju, Vidyasagar'</FONT>
<BR><FONT SIZE=3D2>&gt; Cc: PowerH List</FONT>
<BR><FONT SIZE=3D2>&gt; Subject: RE: Dictionary to SQL</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; This isn't documented in QSHOW help - when I =
try to</FONT>
<BR><FONT SIZE=3D2>&gt; run these commands,</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; $QSHOW</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;set lang SQL</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;gene database =
&lt;dict&gt;&nbsp;&nbsp;&nbsp;&nbsp; ?&nbsp; what exactly is =
this,</FONT>
<BR><FONT SIZE=3D2>&gt; the short form of the</FONT>
<BR><FONT SIZE=3D2>&gt; dictionary in OpenVMS?&nbsp;&nbsp; thnx</FONT>
<BR><FONT SIZE=3D2>&gt; Default device is disc file QSHOGEN.SQL.</FONT>
<BR><FONT SIZE=3D2>&gt; The file</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT =
SIZE=3D2>AVED$DISK5:[AVED.SFD.APPN.SFA.DEVE.SRC.SQL]QSHOGEN.SQL;</FONT>
<BR><FONT SIZE=3D2>&gt; already</FONT>
<BR><FONT SIZE=3D2>&gt; exists.</FONT>
<BR><FONT SIZE=3D2>&gt; Create new version?y</FONT>
<BR><FONT SIZE=3D2>&gt; *E* No valid files were specified in the =
GENERATE</FONT>
<BR><FONT SIZE=3D2>&gt; statement.</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; gene all</FONT>
<BR><FONT SIZE=3D2>&gt; *W* GENERATE target is not a relational =
database.</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; -----Original Message-----</FONT>
<BR><FONT SIZE=3D2>&gt; From: Goparaju, Vidyasagar</FONT>
<BR><FONT SIZE=3D2>&gt; [<A =
HREF=3D"mailto:VGoparaju@tradepointsystems.com">mailto:VGoparaju@tradepo=
intsystems.com</A>]</FONT>
<BR><FONT SIZE=3D2>&gt; Sent: 2005 February 3 10:44 AM</FONT>
<BR><FONT SIZE=3D2>&gt; To: Johnson, Harold A EDUC:EX</FONT>
<BR><FONT SIZE=3D2>&gt; Cc: PowerH List</FONT>
<BR><FONT SIZE=3D2>&gt; Subject: RE: Dictionary to SQL</FONT>
<BR><FONT SIZE=3D2>&gt; There is an option is QSHOW to create SQL =
script.</FONT>
<BR><FONT SIZE=3D2>&gt; $QSHOW</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt;SET =
LANG SQL</FONT>
<BR><FONT SIZE=3D2>&gt; * GENE DATABASE &lt;Dictionary file =
name&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; *</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Sagar</FONT>
<BR><FONT SIZE=3D2>&gt; -----Original Message-----</FONT>
<BR><FONT SIZE=3D2>&gt; From: powerh-l-admin@lists.sowder.com [</FONT>
<BR><FONT SIZE=3D2>&gt; <A =
HREF=3D"mailto:powerh-l-admin@lists.sowder.com">mailto:powerh-l-admin@li=
sts.sowder.com</A></FONT>
<BR><FONT SIZE=3D2>&gt; &lt;<A =
HREF=3D"mailto:powerh-l-admin@lists.sowder.com">mailto:powerh-l-admin@li=
sts.sowder.com</A>&gt; ]On Behalf</FONT>
<BR><FONT SIZE=3D2>&gt; Of Johnson, Harold A</FONT>
<BR><FONT SIZE=3D2>&gt; EDUC:EX</FONT>
<BR><FONT SIZE=3D2>&gt; Sent: Thursday, February 03, 2005 12:33 =
PM</FONT>
<BR><FONT SIZE=3D2>&gt; To: PowerH List</FONT>
<BR><FONT SIZE=3D2>&gt; Subject: Dictionary to SQL</FONT>
<BR><FONT SIZE=3D2>&gt; Anyone know how to convert a PH Dictionary =
(OpenVMS)</FONT>
<BR><FONT SIZE=3D2>&gt; to SQL?&nbsp;&nbsp; I think that</FONT>
<BR><FONT SIZE=3D2>&gt; there are 3rd party utilities to do this, but =
we are</FONT>
<BR><FONT SIZE=3D2>&gt; only doing it once and</FONT>
<BR><FONT SIZE=3D2>&gt; don't want buy anything.</FONT>
<BR><FONT SIZE=3D2>&gt; OR, is there some way to access the dictionary =
meta</FONT>
<BR><FONT SIZE=3D2>&gt; data and extract it</FONT>
<BR><FONT SIZE=3D2>&gt; directly?&nbsp;&nbsp; As a last resort, we will =
have to do the</FONT>
<BR><FONT SIZE=3D2>&gt; conversion by hand.</FONT>
<BR><FONT SIZE=3D2>&gt; cheers</FONT>
<BR><FONT SIZE=3D2>&gt; =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =
=3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D</FONT>
<BR><FONT SIZE=3D2>&gt; =3D =3D</FONT>
<BR><FONT SIZE=3D2>&gt; Mailing list: powerh-l@lists.sowder.com</FONT>
<BR><FONT SIZE=3D2>&gt; Subscribe: &quot;subscribe&quot; in message =
body to</FONT>
<BR><FONT SIZE=3D2>&gt; powerh-l-request@lists.sowder.com</FONT>
<BR><FONT SIZE=3D2>&gt; Unsubscribe: &quot;unsubscribe =
&lt;password&gt;&quot; in message</FONT>
<BR><FONT SIZE=3D2>&gt; body to</FONT>
<BR><FONT SIZE=3D2>&gt; powerh-l-request@lists.sowder.com</FONT>
<BR><FONT SIZE=3D2>&gt; <A HREF=3D"http://lists.sowder.com/mailman/listi=
nfo/powerh-l" =
TARGET=3D"_blank">http://lists.sowder.com/mailman/listinfo/powerh-l</A><=
/FONT>
<BR><FONT SIZE=3D2>&gt; &lt;<A =
HREF=3D"http://lists.sowder.com/mailman/listinfo/powerh-l" =
TARGET=3D"_blank">http://lists.sowder.com/mailman/listinfo/powerh-l</A>&=
gt;</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; This list is closed, thus to post to the list =
you</FONT>
<BR><FONT SIZE=3D2>&gt; must be a subscriber.</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
</P>

<P><FONT SIZE=3D2>=3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =
=3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D</FONT>
<BR><FONT SIZE=3D2>Mailing list: powerh-l@lists.sowder.com</FONT>
<BR><FONT SIZE=3D2>Subscribe: &quot;subscribe&quot; in message body to =
powerh-l-request@lists.sowder.com</FONT>
<BR><FONT SIZE=3D2>Unsubscribe: &quot;unsubscribe =
&lt;password&gt;&quot; in message body to =
powerh-l-request@lists.sowder.com</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://lists.sowder.com/mailman/listinfo/powerh-l" =
TARGET=3D"_blank">http://lists.sowder.com/mailman/listinfo/powerh-l</A><=
/FONT>
<BR><FONT SIZE=3D2>This list is closed, thus to post to the list you =
must be a subscriber.</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C50AFD.9BF82D06--