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