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
Can anyone provide a simple example of passing data via a data structure from one procedure to another? I would like to call a procedure to post data to a transaction file using a data structure to pass the data.
Answer Question | August 21, 2010 6:40 PM
A/400, iSeries RPG programming, RPGLE
I am trying to connect to EDW data mart on a Unix server from an SQLRPGLE pgm using the embedded SQL CONNECT TO code. I am getting SQLCOD = -000000113 when in debug and the connection fails. I have the code I can send in an email if you want? BCL2008
Answer Question | August 21, 2010 2:57 PM
RPGLE, SQL, Unix
I M USING A RPGLE PRGM IN WHICH THERE ARE 2 SCREENS.1 CONTAINS ALL THE RECORDS OF CUST ,IN WHICH 1 CAN USE OPT 2OR 4 FOR UPDATE AND DELETE.BOTH THE FUNCTIONS ARE WORKING BUT WHEN UPDATE SCREEN OPENS I WANT TO GO BACK TO MAIN SCREEN WHICH CONTAINS ALL THE RECORDS.SO PLZ TELLL ME [...]
Answer Question | October 10, 2008 7:04 AM
Update an *ISO date in RPGLE?
Answer Question | October 13, 2008 5:51 PM
I am attempting to eliminate several pre-printed forms by using AFPDS, however I am running into a problem printing images. I first encountered the problem in trying to shade boxes. After research revealed that box shading is actually an image, I tried adding our company logo, confirming that I am unable to print images using [...]
Answer Question | May 29, 2012 5:41 PM
AFPDS, iSeries, iSeries printing, PRTF, RPGLE, TCP/IP
Can the parameter’s name in parameter list same with the field name in physical file?
Answer Question | August 21, 2010 6:37 AM
Parameter list -AS400, RPGLE
I need to automatically run the Receive Files from Host command after business hours. Is there a CLP command to accomplish this with an example? Thanks, LWK
Answer Question | July 31, 2010 12:31 PM
CLLE, CLP, RPGLE, VB
How can I define a flat file in RPGLE?
Answer Question | September 19, 2008 10:39 PM
Flat files, RPG, RPGLE
Please provide me the solution or at least a hint to this problem. Lets Suppose I have an array having 4 elements ( A, B, C, D). I would like to have all the possible combination of the 4 elements with no repetition (i.e. in mathematical terms 4C1 + 4C2 + 4C3 + 4C4 = [...]
Answer Question | July 31, 2010 2:58 PM
Arrays, RPG, RPGLE
i have a file p1 (pf) and one one display file d1 whose fields are taken as reference (using f10) from p1 when i write a simple rpgle pgm to write records from display file in to file p1(pf) using following code: fp1 uf a e disk fd1 cf e workstn c *in03 doweq *off [...]
Answer Question | September 15, 2008 6:31 AM
PF/LF, RPG, RPGLE
The following command: ===> CPYTOIMPF FROMFILE(LTCLIB/WPELG01P) TOFILE(LTCLIB/WPELGCSV) MBROPT(*REPLACE) STRDLM(*NONE) produces error To-file WPELGCSV in LTCLIB not allowed. The explanation says the To file must be an externally defined PF, which it is. I need to remove the double quote marks from the CSV file I am trying to produce. Both the From and To files [...]
Answer Question | July 30, 2010 5:22 PM
CL, CPYTOIMPF, RPGLE
I can use the SFLRCDNBR(CURSOR) keyword to position the cursor on the correct subfile line that I want, but can I then get it to position on a particular field ? SFLRCDNBR(CURSOR) defaults to the first input capable field. DSPATR(PC) seems to override the SFLRCDNBR keyword; therefore I lose the cursor RRN.
Answer Question | September 9, 2008 4:28 PM
DDS, DSPATR, RPGLE, SFLRCDNBR, Subfile
I have created one table using CREATE TABLE Command and have added some datas in that table.i have defined that table RPGLE’s File specification. FEmployee IF A E Disk . While compiling i am getting RNF2109 Error. Please help me to rectify this error?
Answer Question | September 3, 2008 8:38 AM
DML, RNF2109 Error, RPGLE
In what condition we have to use ,READE,READ,REAC and *LOVAL SETLL?
Answer Question | August 27, 2008 1:17 AM
LOVAL SETLL, READC, READE, RPG, RPGLE
We have an application that has our iSeries(AS/400) connect to a remote IP address and port. If we have to end the application and restart it (IPL, error, end/start subsystem) the iSeries keeps the connection open. AFter the application is restarted, the TCP connections show two connections to the remote IP, and the application does [...]
Answer Question | September 2, 2008 7:29 PM
CL, CLLE, iSeries networking, RPGLE, TCP
Hi, Can any one please tell me what are all the different job statuses in as400 like MSGW,CNDW,EVTW,DEQW,DLYW and what do they actually stand for?
Answer Question | March 22, 2012 3:53 PM
AS/400, CLLE, RPGLE
I want to write a program that will retrieve any field(s)from any file on the iSeries. The only part I haven’t figured out is how to code the fetch statement to populate variables that aren’t known until execution time
Answer Question | November 5, 2008 11:15 PM
Embedded SQL, iSeries, RPG, RPGLE, RPGSQL
How do I get the session date inside of a RPGLE program?
Answer Question | August 15, 2008 2:13 PM
how to do the coding to check the data (email address)that the first char must contain @ by using movel? for example: if user key in abc.yahoo.com error massage will show but if user key in @yahoo.com the data is correct.
Answer Question | August 14, 2008 7:15 AM
MOVEL, RPG, RPGLE