RPGLE Questions


How to find a character in a string
how to find a character how many times it appears in the string.

Answer Question   |  March 17, 2012  12:40 PM
RPGLE
asked by:
1,240 pts.

Want to make a utility to search string.
[h3 class="groups"> Hi,[/h3] [h3 class="groups">I want to make a utility in AS400 to search a string (Such as file name/PGM name) in my current Library and in all Source physical files if found show PGM and all related files. Like I do trough find string Command. [/h3] It would be also help ful you can [...]

Answer Question   |  March 17, 2012  3:09 PM
CL, CLLE, RPG, RPGLE
asked by:
100 pts.

RPGLE AS400
How to create 6 digit non repeating random number in rpgle as400?

Answer Question   |  March 17, 2012  9:14 AM
AS400 RPGLE, RPGLE
asked by:
1,240 pts.

Qualified Data Structure with Multiple Occurrance
How do I define a Qualified DS as a *Entry Parm with Multiple Occurrences?

Answer Question   |  March 19, 2012  5:21 PM
as/400 rpg iseries, AS400 RPGLE, RPGLE
asked by:
5 pts.

SUBFILE
IF I HAVE AN EMPTY DATABASE FILE WITH NO RECORDS. HOW WILL I CODE IN RPGLE WITHOUT LETTING THE PROGRAM CRASH?

Answer Question   |  March 17, 2012  10:21 AM
RPGLE
asked by:
30 pts.

snddst- in RPG
i am trying to use the SNDDST command in an RPGLE program. It works to one email (*PRI), i want to do a (*BCC) to another user but i get an errro. anyone have any code sample to do this operation? thanks

Answer Question   |  March 17, 2012  9:15 PM
AS/400 email, RPG ILE, RPGLE, SNDDST
asked by:
rmb
115 pts.

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 [...]

Answer Question   |  February 28, 2012  10:04 AM
RPGLE, SFLRNA
asked by:
130 pts.

Rpg-Procedures
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.

Answer Question   |  February 28, 2012  2:12 PM
RPGLE
asked by:
120 pts.

AS400 – RPGLE, convert character to numeric.
Hi all…!         Here i give you the code. DNum_tmp           c              ’18745678′ I declared Num_tmp like this and i did some operations then i got  Res_tmp = ’18745678′ . Now the question is i want to convert this char value to decimal that is addtionable. is this clear ? boz i need to add [...]

Answer Question   |  March 6, 2012  12:35 PM
AS400 RPGLE, RPG ILE, RPGLE
asked by:
1,435 pts.

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 for [...]

Answer Question   |  November 18, 2011  9:52 PM
Display File, RPGLE
asked by:
420 pts.

Same file in different libraries and file is defined once in an RPGLE program
I have a coding project that requires the following.

Answer Question   |  March 17, 2012  11:45 PM
Coding, DB LIBRARIES, RPGLE
asked by:
180 pts.

EMLSTMF – Email Address
Hi, I have used SNDDST seamlessly to send .csv files, collecting the users email address via a DSPDIRE (output to a file in QTEMP). My question is : I want to use EMLSTMF instead but how can I access the email address from DSPDIRE ? Many thanks.

Answer Question   |  March 17, 2012  11:45 AM
AS/400, CLLE, RPGLE
asked by:
380 pts.

Are there any Synon experts out there? (20 plus years)
Experienced, 20 years plus, synon developers have probably forgotten more about synon than the new generation (yes there are young people learning synon) will ever know.   Does any of those experts remember the phantom + sign on subfile displays when there were no more records to display?  If so, what is the solution to [...]

Answer Question   |  March 17, 2012  7:46 PM
RPG, RPG ILE, RPG IV, RPG Language Support, RPG/400, RPGILE, RPGLE, Synon, Synon 2E, Synon/2E, Synon/Cool 2E
asked by:
140 pts.

RPG FREE Reference Book
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?

Answer Question   |  October 14, 2011  5:59 PM
RPG, RPG ILE, RPG IV, RPG Language Support, RPG/400, RPGLE
asked by:
165 pts.

Reading only the active records in a flat file
I have a physical flat file which has thousands of deleted records. (I can’t get exclusive use of the system to do a reorg) I am doing a sequential read of the file because the file only has a few active records. However, it is taking the program awhile to finish and I’m guessing it is [...]

Answer Question   |  March 31, 2012  7:05 PM
AS/400 flat file, RPG, RPG ILE, RPG IV, RPG/400, RPGILE, RPGLE
asked by:
165 pts.

What could be the reson for OVRDBF and OPEN on file is not working in RPGLE program.
Hi All, Can anyone please help me with below issue. The is a program abend in our production system in RPGLE program and with in that following operations happening, but i found errors while running program as below. following are the breif Sequence of operations written in RPGLE: 1. File(FMABCF)is declared as USROPN in F [...]

Answer Question   |  March 31, 2012  6:00 AM
OVRDBF, RPG ILE, RPGLE
asked by:
695 pts.

INZSR with RETURN & INLR
Hi There, How INZSR will work with RETURN & *inLR *ON. 1:->I mean Pgm A is calling Pgm B.Pgm B is using INZSR & RETURN .So how INZSR  will work during the 2nd call to PgmB .I mean when Pgm B got called 2nd time then control will pass to INZSR or Not? 2:->Pgm A [...]

Answer Question   |  March 31, 2012  7:29 AM
*INZSR, Coding, RPGLE
asked by:
65 pts.

Indicator Off with RPG
How can we put all indicator off in single statement or in rpg code (It might be RPGIII Or IV)

Answer Question   |  March 31, 2012  7:14 AM
RPG Code, RPG indicators, RPGLE
asked by:
65 pts.

open() API on V6R1
For some reason, my RPGLE program can’t create an xml stream file  on the new Power 6 (V6R1). I’ve tried using %trim(filename) and defining the file name as “varying” length. It works just fine on V5R4. I’d appreciate any ideas or suggestions.

Answer Question   |  March 31, 2012  9:41 PM
AS/400, iSeries, Power6, QC2LE, RPGLE, V6R1
asked by:
25 pts.

Problem in updating a IFS file content..
Hi , i have a text file in IFS which have some data. Now after reading i want to replace all occurance of xyz with abc and update the ifs file .Everything is working fine except updation . The problem is with pointer setting , everytime the data is appended in file rather than replacing [...]

Answer Question   |  March 31, 2012  3:41 PM
AS/400 file specification, IFS, IFS Commands, RPGLE
asked by:
420 pts.