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



On Fri, Jan 13, 2017 at 9:01 AM, Mohammad Tanveer <surgum@xxxxxxxxx> wrote:
I was wondering if there are some good working examples with File I/Os ..
may be with printer files and DSPF?

Not a lot of examples. Not many people use Python on the i. Until
quite recently, very few people knew that you could do such a thing.

I wrote a little bit on the iSeriesPython blog, which you can reach
from the iSeriesPython home page (the blog tab) or directly at

<http://iseriespython.blogspot.ca/>

I will say that almost any examples you do find will deal with
database tables. Printer files and display files are a distinctly IBM
thing. Linux, Windows, and Mac don't have anything similar. Obviously
you can generate hard copy and show stuff on the screen in other
platforms, but the way you do it is very different than PRTF and DSPF.
Honestly, if you are thinking in terms of PRTF and DSPF, by far the
best technology for working with those is RPG.

Python looks like good old DOS
based QBASIC to me with some advance features...I am trying to practice it
using www.codecademy.com for python

It's hopefully as easy for beginners to use as Basic, but it is vastly
more advanced. I don't think saying "some advanced features"
adequately conveys how much of a difference there is. For that matter,
almost any Basic you will find today is also significantly more
advanced than QBASIC.

John Y.

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.