|
John Carr said; >>I personally won't care, I currently read & write to the IFS using Unix >>API's already >I attended your session at COMMON (must have been Spring 98 as >that was the last one I attended) where you talked about using these >APIs to do this. I still currently do not need to do this, but there are >a couple of projects coming in the near future that may need this >capability. What is the best resource to use, when this becomes >neccessary? >Thanks >Joe Teff The COMMON session I used for a few years was "Coding External I/O modules using RPG". It was primarily to demonstate how to move more towards OOP even using RPG. (Abstraction, Encapsulation, etc.) The routines were to write to the IFS in a .CSV comma delimited format. (I have mailed it out at least to 25 or more people on these types of lists. talking about code sharing) I think the feedback I got was real good. A large number of people who attended(200-300) never saw procedures before and the prototypes for the API's ...... well they struggled with them. So I guess (and since I do education) I tend to voice my opinions for the masses so to speak. I do think the majority of AS/400 IT people are more focused on the "Business" aspect of programming, as opposed to the C/Unix's people's focus on the "Way Cool" aspect of programming. Well Soap Box (*off) Joe, Take the examples, read the great articles in mags like News/400, Midrangecomputing, etc. and play with it. The example you have of mine runs quick and you can encapsulate it (that was the point of my session) to hide the gory details and just call it from other programs. The API's themselves are one learning curve, the other is Codepages, CCIDs, End of line(etc) characters, and the other surrounding things you must learn to make it work. Like the realllllll inteligent things in Unix like Opening the file once(to create it with the right authority, etc.) then close the file, then open it again this time telling it (with a real intuitive number BTW) to tell it to translate from EBCIDIC to ASCII. Because of these things above that I humbly thought that if we had a "Read/Write" type function in RPG that did those stupid things that aLLLLLLLLLLLLOOOOOOOTTTTTT more programmers would be using the IFS in their programs sooner. Those C examples in QSYSINC Really help someone at work, stealing time outside of a project to learn something new. End of Quote. End of soapbox I semi promise. John Carr Look at these, D O_CODEPAGE S 10I 0 INZ(8388608) D O_TEXTDATA S 10I 0 INZ(16777216) Does anyone know why the CODEPAGE is that number? No, and you won't see aaaaaaannnnnyyyyyy documentation anywhere of what the valid numbers are, or why they are those numbers?? Its a "Trust me they work, don't miss key them" +--- | 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 mailing list archive is Copyright 1997-2025 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.