I don't think I need to say more about this display file as I assume you are familiar with the rest of the code within it.įor what I want to do here a CL program is best. Line 12: If the library entered does not exist then indicator 51 is set on and this message will be displayed in the error subfile. Line 11: This is the field for the library name. Line 9: If the file entered does not exist in the library then indicator 50 will be set on and this message will be displayed in the error subfile. Line 3: Why would I not use the display file's own error subfile to display any messages? Let the operating system do the work to display the errors. I could call the program with the file and library as parameters, but I prefer to have a display file to make sure that the file and/or library entered are not mistyped.īelow is the source of a stripped down version of the display file I have: If I want to copy a file to the IFS I just need the file and library, the rest will always be the same. Then I can call the program with just a few parameters, and the program will do everything. I admit I don't want to do that, if I need to perform the same task more than just a few times I will create a program containing all the commands I need. Too many times I see these people type in command names, prompt with F4, and fill in the same parameters time and again to do the same task. I am surprised how few developers I talk to build their own set of programs to automate tasks they perform every day. A colleague asked how did I do this so quickly, and having showed him how I do, he recommended that this would be a good subject for a post in this blog. I take the file, or table, and copy it to my folder in the IFS, and then copy it from there to my PC. Editor’s Note: This article is the third installment in a series exploring ways you can utilize the AS/400 Integrated File System (AS/400 IFS) to provide additional capabilities for your AS/400-centric network.Often I find it easier to analyze the contents of a file using Microsoft's Excel than using the IBM i based tools.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |