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


  • Subject: Re: DDS from SQL
  • From: "Art Tostaine, Jr." <atostain@xxxxxxxxxxx>
  • Date: Mon, 06 Oct 1997 08:38:12 -0400
  • Organization: Creative Computer Associates, Inc.



Vern Hamberg wrote:

> Leo,
>
> At 10:36 AM 10/3/97 -0400, you wrote:
>
> >Hi every one,
> >
> >Can somebody tell me if I can (and how to) 'retreive' the DDS from an
> >SQL created file?
>

This RPG code will do what you want.  you can build a CLP around it to do a 
DSPFFD and override to the file before calling RPG.

No comments on this code, please!  Not sure where we got this from....

     Fdspffd    if   e             disk
     Fqddssrc   if a f  999        disk
     Iqddssrc   ns
     C                   bitoff    '01234567'    APOST             1
     C                   biton     '123457'      APOST
     C                   readp     qddssrc                                99
     C                   read      qwhdrffd                               98
     C                   dow       *in98 = *off
     c                   add       10            seq               6 0
     c**
     c** setup colhdg
     c**
     c                   movel     *Blanks       colhdg           30
     c                   cat       'COLHDG(':0   colhdg
     c                   cat       apost    :0   colhdg
     c                   cat       whchd1   :0   colhdg
     c                   cat       apost    :0   colhdg
     c                   cat       ')'      :0   colhdg
     c     whfldt        ifne      'S'
     c     whfldt        andne     'P'
     c                   except    writea
     c                   else
     c                   except    writes
     c                   end
     C                   read      qwhdrffd                               98
     c                   end
     c                   move      *on           *inlr
     c                   return
     Oqddssrc   eadd         writea
     o                       seq                  6
     O                                           18 'A'
     O                       whfldi              40
     O                       whfldb        z     46
     O                       whfldt              47
     O                       colhdg              86
     Oqddssrc   eadd         writes
     o                       seq                  6
     O                                           18 'A'
     O                       whfldi              40
     O                       whfldd        z     46
     O                       whfldt              47
     O                       whfldp        z     49
     O                       colhdg              86

--
Art Tostaine, Jr.
Creative Computer Associates, Inc.
Parlin, NJ
atostaine_at_crecomp_dot_com


+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to "MIDRANGE-L@midrange.com".
| To unsubscribe from this list send email to MAJORDOMO@midrange.com
|    and specify 'unsubscribe MIDRANGE-L' in the body of your message.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.