1
How to easily perform date conversions in RPGLE (Including Substringing!)
Over the years I have had to modify my fair share of outdated code, especially when it comes to Date Conversions. Not every system uses an 8 position numeric date field. The place I’m currently at still has a number of files with a 6 position numeric date field. I was wondering if anyone else [...]
Answer Question
| February 26, 2013 5:30 PM
RPG, RPGIV, RPGLE
Over the years I have had to modify my fair share of outdated code, especially when it comes to Date Conversions. Not every system uses an 8 position numeric date field. The place I’m currently at still has a number of files with a 6 position numeric date field. I was wondering if anyone else [...]
RPGIV: Moving Input record to Output
I am a beginner in AS/400. I have written one RPGIV program which requires to read one PF and will do some processing and will write into another Output file. Input Record format defined in input file : INPREC Output Record format defined in input file : OUTREC. Removing all the processing part , in [...]
Answer Question
| January 8, 2013 8:10 AM
AS/400, RPGIV
I am a beginner in AS/400. I have written one RPGIV program which requires to read one PF and will do some processing and will write into another Output file. Input Record format defined in input file : INPREC Output Record format defined in input file : OUTREC. Removing all the processing part , in [...]
iSeries RPG
Hello, Is it possible to create some kind of RPG sevice program that will reseide in the memory and await for a function key pressed while another program with its own DSPF is interacting with user? For example, user is intereacting with an input screen and secret functional key will allow a popup screen to [...]
Answer Question
| March 17, 2012 1:22 PM
AS400. RPG, iSeries RPG programming, RPGIV
Hello, Is it possible to create some kind of RPG sevice program that will reseide in the memory and await for a function key pressed while another program with its own DSPF is interacting with user? For example, user is intereacting with an input screen and secret functional key will allow a popup screen to [...]
RPGIV Coding Approach for 1 billion records
I have 1billion records in a PF.Key filed is Date.I want to generate a report based on Key field.Which approach will be best for me (I mean shall i go with OVRDBF or any other approach)Please suggest.(RPGIV-Free Format-V5R4)
Answer Question
| March 31, 2012 7:21 AM
OVRDBF, RPG Code, RPGIV, V5R4
I have 1billion records in a PF.Key filed is Date.I want to generate a report based on Key field.Which approach will be best for me (I mean shall i go with OVRDBF or any other approach)Please suggest.(RPGIV-Free Format-V5R4)
Free Format RPGIV
Hello everybody, I am looking for complete reference for free format RPGIV,as I am new to free format…please provide me a link/pdf for the same. Thanks, Samul
Answer Question
| February 10, 2010 7:14 AM
RPG, RPG training, RPGIV
Hello everybody, I am looking for complete reference for free format RPGIV,as I am new to free format…please provide me a link/pdf for the same. Thanks, Samul
Quick and dirt way to backup my greenscreen pgms to my pc
Quick and dirt way to backup my greenscreen as400 pgms to a text file or word file on the C: of my PC.
Answer Question
| December 22, 2009 6:34 PM
AS/400, RPGIV
Quick and dirt way to backup my greenscreen as400 pgms to a text file or word file on the C: of my PC.
Clear leading zeros
I have a 10A character field which hold a numeric value. Problem is that it contains leading zeros. How can I remove them? Many thanks.
Answer Question
| November 3, 2009 9:08 AM
RPG, RPGIV, V5R4
I have a 10A character field which hold a numeric value. Problem is that it contains leading zeros. How can I remove them? Many thanks.
RPGIV – numeric field to character field
Experience shows you cannot move a numeric field to a character field using EVAL – so what is the best method? Is Movel the only way? Thanks.
Answer Question
| October 5, 2009 9:01 AM
RPGIV, V5R4
Experience shows you cannot move a numeric field to a character field using EVAL – so what is the best method? Is Movel the only way? Thanks.
About record & object lock
When a record will be locked and object will be locked? what is the level identifier parameter in PF?
Answer Question
| August 14, 2009 2:44 AM
RPGIV
When a record will be locked and object will be locked? what is the level identifier parameter in PF?
What is the difference between ‘Return’ and ‘LeaveSr’ in subroutine?
What is the difference between ‘Return’ and ‘LeaveSr’ in subroutine?
Answer Question
| August 13, 2009 11:23 AM
RPGIV
What is the difference between ‘Return’ and ‘LeaveSr’ in subroutine?
Quarter calculation
I have a fiscal calendar that runs from March to February. I need to be able to calculate the quarter number and determine the months that compose that quarter. Doing all of this with out prompting the user.
Answer Question
| March 13, 2009 4:10 PM
iSeries, iSeries RPG programming, RPGIV
I have a fiscal calendar that runs from March to February. I need to be able to calculate the quarter number and determine the months that compose that quarter. Doing all of this with out prompting the user.
diff. between two date
Hello guys, I wanna do a one pgm which is find out date diff. between two date in rpg /400. Actually i did this in rpgiv…but now i want to do it in rpg/400. can somebody provide me a exact logic behind this.. Thanx in advance…..
Answer Question
| October 15, 2008 11:50 AM
AS/400, RPG/400, RPGIV, RPGLE
Hello guys, I wanna do a one pgm which is find out date diff. between two date in rpg /400. Actually i did this in rpgiv…but now i want to do it in rpg/400. can somebody provide me a exact logic behind this.. Thanx in advance…..
1





