× 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: "extract" command enhancement (subfiles and Biffs
  • From: "Hatzenbeler, Tim" <thatzenbeler@xxxxxxxxxxxxx>
  • Date: Mon, 27 Sep 1999 11:55:31 -0700

Scott,

The problem as I see it, to write procedures for a subfile or for any other
IO in general, at least to my knowledge, is you really can't make it
generic.  Because in your service module, you still need the real name of
the file or subfile you want to manipulate.  What I was trying to suggest is
this, before you can have real procedure to do file IO, you need the
features of File pointers....

i quickly pieced this together, but I hope the general concept has been
presented...

fp=open(SubCtl1)
ClearSubfile(fp)
close (fp)

fp=open(SubCtl2)
ClearSubfile(fp)
close(fp)

int closesubfile(const char *filename) {    <--- procedure interface
    FILE *f;
    /* set the clear indicator */
    write f
}

This example was a rpg/c combo that would never work, but I hope it made
since...

tim


> -----Original Message-----
> From: Scott Klement [SMTP:infosys@klements.com]
> Sent: Sunday, September 26, 1999 2:10 PM
> To:   RPG400-L@midrange.com
> Subject:      Re: "extract" command enhancement (subfiles and Biffs
> 
> Tim,
>      What is a "file pointer"?  I've never heard of this.
> Is this an enhancement thats on its way?
> 
> 
> "Hatzenbeler, Tim" <thatzenbeler@clinitech.net> wrote:
> > But is this really practical, since we don't have file pointers yet.
> >
> >  -----Original Message-----
> >  From: Scott Klement [SMTP:infosys@klements.com]
> >  Sent: Friday, September 24, 1999 1:45 PM
> >  To: RPG400-L@midrange.com
> >  Subject: Re: "extract" command enhancement (subfiles and
> > Biffs
> >
> >  Peter,
> >
> >       And similarly a 3rd party could provide a service program that
> >  handled most of the work of subfiles for you...
> >
> >  That would be a nice addition to our "free software" web page that
> >  we've been talking about.
> >
> +---
> | 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
> +---
+---
| 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 ...


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.