× 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: Creating DDS from physical file
  • From: Jim Langston <jlangston@xxxxxxxxxxxxxxxx>
  • Date: Tue, 25 Jul 2000 13:09:39 -0700

I also needed to do this, and I wound up creating a few programs to do this for 
me.
Basically, it does a DSPFFD (Display File Field Description) to spool file.  
Then the
spool file is copied to a physcial file (or if DSPFFD goes to *OUTFILE I did it 
that
way, would have to look at the code to make sure).  The program then reads 
through
the file and creates a source file with the A specs for the fields.

I then have to do a little manipulation, I do a DSPPFD and get the record 
format name
and add that to the beginning of the source file.  Also, I look at the names of 
the key fields
and add them to the end of the file as K.

I then compile it and have a duplicate of my original file.

This has worked 95% of the time.  One time, for some reason, it did not 
consider it an
exact copy, when I went to do a cpyf from the old one to the new one (don't 
remember why)
I had to specify *NOCHK or *MAP.  Mighta been field validation or somethign my 
little
program doesn't take into consideration.

If you need the code for this let me know and I"ll e-mail it to you directly.

Regards,

Jim Langston

James David Rich wrote:

> I've been looking and haven't found the answer to this:  can I recreate
> the DDS specs from the physical file?  How?
>
> James Rich
> james@dansfoods.com

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| 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.