Skip to main content


Showing posts from September, 2016

Working with IFS in RPGLE

Read IFS file in RPGLE Working with IFS file has always been one of the important things while programming with RPGLE. The most common way to deal with IFS file is  Copy the IFS file to Flat file using CPYFRMIMPF/CPYFRMSTMF. Read the Flat file in RPGLE. Or  Write the Data into File in RPGLE. Copy the File to IFS by using CPYTOIMPF/CPYTOSTMF. This involves writing additional CL Program or using QCMDEXC API to execute CL Command to copy the data from/to IFS and Creation of Temporary/Permanent Database file.  Accessing IFS files has become easy by using 'open', 'close', 'read' and 'write' functions. Below is an Simple Example on how to Read data from IFS and write into Database file. **Free      Ctl-Opt DftActGrp(*No) ;      // ProtoType Declaration for 'open'      Dcl-PR OpenIfs Int(10) ExtProc('open') ;        pIfsPath Pointer Value Options(*String) ;        pFileStatusFlag Int(10) Value ;        pFilePermission Uns(10) Value Options(*NoPa

Advantages of using Free-format RPGLE

Advantages of Using Free-Format RPGLE IBM has always been focusing on making the RPG easy for Non-RPG Programmers. One such Important move is introducing the Free-Format into RPG for C-Spec.  Introducing Eclipse based RDi is another biggest move. This encourages young developers in learning RPG like any other web based languages. RDi has an addition to convert your Fixed Format code to Free-Format.  Almost after a Decade of Introducing Free-Format, IBM took major Step to Convert RPG into Full-Free format. As a Core RPG Developer, I can say this as 'Really Huge' change to the way how RPG was being coded and how the RPG has become now. This has changed its way from RPG II, RPG III and to Full-Free Format. We will have a quick look at the Major advantages of Using Free-Format RPGLE in this article. Readability Efficient use of Space New Features Specific to Free Format Easy to Understand/Maintain Readability: No need to stick to specific columns and thinking about the limitations

Working with 5250 Emulator from IBM Navigator for i

The W eb based Navigator for i is a new interface for IBM i. This will change the way you look at IBM i completely. This advanced Set Target System feature lets you manage any IBM i in your environment from a single browser. But its real power is allowing you to use the newest version of the web console against systems at older releases, including IBM i 6.1 and IBM i 5.4. The web based console now includes a 5250 Emulator for those times when you just need a good old fashioned command-line interface. The integrated DB2 Database has enhancements on both the web-based and Windows based consoles to improve performance analysis and provide more gradual user access. Speaking of performance, the Performance Data Investigator continues enhancing its visual yet power fun analysis and reporting interface. Journal now provides a full set of options to display and control journal objects. I felt very excited to see this change happening in IBM i and looking forward for more such enhancements whi