× 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: ILE-C
  • From: Patrick Townsend <townsend@xxxxxxxxxxxxxx>
  • Date: Fri, 27 Mar 1998 13:01:33 -0800
  • Organization: Patrick Townsend & Associates, Inc.

John,

The form feed characters written to qsysprt are probably being ignored
because they are not valid for SCS type printer devices. It's hard to
map stream I/O to AS/400 devices like a printer file. You might have
more luck creating a user-defined printer file with DDS and using the C
functions for externally described files to write to the printer file.
You could use _ROpen, _Rwrite, etc., for this type of operation. Most of
the _R*** operations map pretty closely to f***() C functions.

Hope this helps!
Patrick

John Hall wrote:
> 
> I am trying to convert some programs into ILE-C
> 
> FILE *out;
> out = fopen("qsysprt","w");
> 
> fprintf(out, "On Page one \n\f");
> fprintf(out, "Should be on page 2\n");
> 
> fclose(out);
> 
> Both statements are placed on the first page.
> The system is ignoring the \f form feed character.
> 
> This programs are being translated from DiplomaC (CISC only) to V4R2
> 
> If anybody has done this I would appreciate any tips you might have.  I
> have about 200 programs to do.
> 
> Thanks
> --
> John L. Hall
> Home Sales Co.
> +---
> | 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 MIDRANGE-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator: david@midrange.com
> +---

-- 

Patrick Townsend                       mailto:townsend@patownsend.com
Patrick Townsend & Associates, Inc.    http://www.patownsend.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 MIDRANGE-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.