-
Identifying Series of numbers in a string
Hi, I seek your help in designing a RPG /RPGLE program which will identify the series of numbers among the character string (like phone #s, Credit card number, etc..) Ex: If String A = 'ABCDSSS123456DDB7BB' My result field should only fetch '123456' and not '7'. (in this example '7' is not...
Last updated: -
How to create 6 digit non repeating random number in rpgle as400?
Last updated: -
hi, I had a doubt when we should take option 14 and when we should take option 15 to create a rpgle module.
Last updated: -
How to find a character in a string
how to find a character how many times it appears in the string.
Last updated: -
Hidden field in single page subfile?
hi , When we open subfile source by using 2 or 5 option then hidden fiedl defination is like that? WWRRN R H REFFLD(........ like that.........) there is no any position means defined at record format level. but when I'm tryung to find out that hidden field by uasing...
Last updated: -
HI I want to learn programing using procedures.Can you plz send me some site from where i can learn it? Plz send some short code examples too if possible.
Last updated: -
how to display blank rows in a subfile in rpgle
i have a subfile with sflpag=sflsiz=10. say in PF total records are 25. when in load subfile in 3rd page i see only 5 records.But my requirement is to see 5 records from PF & 5 blank rows. I tried to do it using sflinz and sflrna.I used a indicator with sflinz.when writing SFLCTL i am switching INZ...
-
Navigation from one sheet to another in AS400(RPGLE)
I have converted two physical files into one flat file.Afterthat I have converted that flat file to CSV file and got two physical files data in one excel file. But I need to write first phsical files data in sheet1 and second physical file data in sheet2 in same excel file.Is there...
-
Access Oracle/Sybase/Informix from RPG
Hi, I would like to access Oracle/Sybase/Informix directly from within an RPG program. This is something similar to ODBC but in reverse - my data source is external to the iSeries and my application and APIs, or called routines, internal in the iSeries. The access to the external database should:...
Last updated: -
Problem in positioning cursor in display file!
I have a display file which have 3 fields A,B,C ..And these are input/output both fields. What i want is to position cursor on that field which have reverse image indicator on .(I am putting it on when that particular field has error)...Please suggest how to do ? I know RTNCSRLOC or CSRLOC will do...
Last updated: -
I'm creating a DSPF and want to put in some common AS/400 command functions, and one of them would be to hit F9 to retrieve the last command entered. How would I go about doing this? I'm using a mock command line input field and would be sending any commands via QCMDEXC. Any ideas on the F9 feature?
Last updated: -
Currently, I am using RPG IV. However, I need to learn how to code in RPG Free. Can anyone tell me the names of some good books and/or tutorials which would help with this?
Last updated: -
In Procedure what is the use of Prototype? What does it denotes?
Last updated: -
How can we write an AS/400 subfile program without using any indicators?
How can we write a subfile program without using any indicators(Even no indicators for SFLDSP, SFLDSPCTL)?
Last updated: -
physicalfile records updation in subfile
i have created one subfile and records are also dsplayed ,but i want modify one record three times but i want second time modification record value ,so how to acess that record value? please give me example program and subfile desion.
Last updated: -
How do I convert RPGLE program to SQLRPGLE?
Last updated: -
RPGLE Getting around recursive calls
With proceedures I read that recursive calls are allowed. No time to get into proceedures. clp calls, pgm1. pgm1 add function displays scrn2, then calls pgm2, pgm2 calls pgm3, pgm3 calls pgm4. pgm1 update function calls pgm4. Issue is that pgm4 can call pgm1, pgm2, pgm3, pgm5, pgm6. On the call...
Last updated: -
DBF in AS/400 – last record written
Hi , There is file which has 6 fields and the first four as its key. Is there any way to figure out which is the last record written into it. Thanks
Last updated: -
Hi All, Can Anyone tell me that which Font we use in As400, i mean default font nmae for As400. Thanks
Last updated: -
Move file on windows folder through FTP script in RPGLE
I am trying to move a file from one folder to another on windows by writing a FTP script in RPGLE. But my file path is too long to come in one line in rpg source. Please can you let me know, how to continue the command in second line.
Last updated: