AS400 RPGLE Lock wait on multythreaded jobs
I have 40 threads of the same program that I am submitting. The jobs go into and out off lckw status to fast to see the reason but this slows the process down How do I find the problem.
Answer Question
| May 11, 2010 11:31 AM
AS/400 jobs, RPG ILE
I have 40 threads of the same program that I am submitting. The jobs go into and out off lckw status to fast to see the reason but this slows the process down How do I find the problem.
Problem with *READ Trigger Program
Caller Program A Reads a record from File X. “After-Read-Trigger” kicks in and calls Program B. Program B changes the Read-Record’s fields as per the required logic (I can see the modified trigger-buffer in debug).
Answer Question
| March 18, 2010 5:23 PM
RPG ILE, RPG IV, RPGILE, RPGLE
Caller Program A Reads a record from File X. “After-Read-Trigger” kicks in and calls Program B. Program B changes the Read-Record’s fields as per the required logic (I can see the modified trigger-buffer in debug).
Non Subfile Field Not Changing When Doing an EXFMT
This should be a simple thing to do but it is not working. I have an RPG program in which the user enters a warehouse code and presses enter. If the code is valid, it then populates a field in the record with the warehouse description. If the user changes the code to an invalid [...]
Answer Question
| January 20, 2012 5:23 PM
RPG, RPG debugging, RPG ILE, RPG IV, RPG/400, RPGLE
This should be a simple thing to do but it is not working. I have an RPG program in which the user enters a warehouse code and presses enter. If the code is valid, it then populates a field in the record with the warehouse description. If the user changes the code to an invalid [...]
Help with embedded SQL in RPG. Dang thing hates the delete statement?
H OPTION(*NODEBUGIO:*SRCSTMT) ******************************************************* FWRLDSHP IF E DISK FWRLDSHP1 O A E K DISK D******************************************************* D* Working Variables D******************************************************* D SDS D PGMNAME 1 10 D* D myDS ds occurs(60) DXORDNU 7a varying DXHIPDT 7a DXSHPIN 30a D* D i s 20i 0 inz D* D*INVDETL E DS EXTNAME(WRLDSHP1) C* C/EXEC SQL C+ Set Option [...]
Answer Question
| February 17, 2011 7:55 PM
RPG ILE, SQL
H OPTION(*NODEBUGIO:*SRCSTMT) ******************************************************* FWRLDSHP IF E DISK FWRLDSHP1 O A E K DISK D******************************************************* D* Working Variables D******************************************************* D SDS D PGMNAME 1 10 D* D myDS ds occurs(60) DXORDNU 7a varying DXHIPDT 7a DXSHPIN 30a D* D i s 20i 0 inz D* D*INVDETL E DS EXTNAME(WRLDSHP1) C* C/EXEC SQL C+ Set Option [...]
Multi Views of a subfile
I need to write a program that shows more than one way to display a subfile. Both views are of the same file but sorted differently and show different fields of the same file when the user presses a function key. Can I do this in one program or do I have to make 2 [...]
Answer Question
| May 19, 2010 10:21 PM
RPG ILE, Subfile
I need to write a program that shows more than one way to display a subfile. Both views are of the same file but sorted differently and show different fields of the same file when the user presses a function key. Can I do this in one program or do I have to make 2 [...]
ILE RPGLE
I HAVE EXTERNALY DISCRIBE PRINTER FILE. I WANT TO WRITE 30 RECORDS IN ONE PAGE. I USED OFLIND KEY WORLD BUT PAGE BREAK NOT WORK. TWO HEADINGS ARE WRITE IN ONE PAGE PLEASE GIVE ANY ANSWER BEST REGARDS, NADEE.
Answer Question
| May 19, 2010 9:54 AM
ILE RPG, RPG ILE, RPG Records, RPGLE
I HAVE EXTERNALY DISCRIBE PRINTER FILE. I WANT TO WRITE 30 RECORDS IN ONE PAGE. I USED OFLIND KEY WORLD BUT PAGE BREAK NOT WORK. TWO HEADINGS ARE WRITE IN ONE PAGE PLEASE GIVE ANY ANSWER BEST REGARDS, NADEE.
Replacing PLIST in RPG /FREE coding
I am starting to use /Free coding in RPG and like the clarity and readability of the code. However I can not get my head around the replacement to using *ENTRY and a PLIST to use parameters passed in to the program. Sometimes this is passed on a call from a CL program, at other [...]
Answer Question
| January 31, 2010 4:55 AM
RPG ILE
I am starting to use /Free coding in RPG and like the clarity and readability of the code. However I can not get my head around the replacement to using *ENTRY and a PLIST to use parameters passed in to the program. Sometimes this is passed on a call from a CL program, at other [...]
RPG iv with no file definitions…
hello, I wonder if it is possible to write an rpgile program without defining any of the files it is suposed to use. The idea is to obtain that sort of information by other means, say a servlet. Can anyone give me some pointers on were to get some info about this? thanks Raven
Answer Question
| May 19, 2010 10:30 PM
RPG ILE
hello, I wonder if it is possible to write an rpgile program without defining any of the files it is suposed to use. The idea is to obtain that sort of information by other means, say a servlet. Can anyone give me some pointers on were to get some info about this? thanks Raven
Copy Objects( SRVPGM, MODULE ) to other system(iSeries)
Hi everybody, explain this, I have two iSeries one with all my sources and other only have object, so the first one I made my test an after that I normally copy objects to second system. Now I have a doubt, what I need copy for second system if I have modules and service programs? [...]
Answer Question
| December 18, 2009 3:07 PM
*SRVPGM, AS/400, module, RPG ILE, RPG Language Support
Hi everybody, explain this, I have two iSeries one with all my sources and other only have object, so the first one I made my test an after that I normally copy objects to second system. Now I have a doubt, what I need copy for second system if I have modules and service programs? [...]
In what circumstances i need use UPDPGM and UPDSRVPGM
Hi everybody,[o:p][/o:p] Explain me this question:[o:p][/o:p] I have 2 modules 1 service program and 1 program, so I need make a few modifications in a program, after that I need again make the same creation like in the begin or with UPDPGM and UPDSRVPGM I have the right result? And I made this? [o:p][/o:p] Thanks.[o:p][/o:p]
Answer Question
| December 18, 2009 2:48 PM
*SRVPGM, AS/400, RPG ILE, RPGILE Dynamic Calls, UPDPGM, UPDSRVPGM
Hi everybody,[o:p][/o:p] Explain me this question:[o:p][/o:p] I have 2 modules 1 service program and 1 program, so I need make a few modifications in a program, after that I need again make the same creation like in the begin or with UPDPGM and UPDSRVPGM I have the right result? And I made this? [o:p][/o:p] Thanks.[o:p][/o:p]
Using the command RCVMSG
There are numerous reports which automatically print throughout the day. Often there may be a message waiting on the printer and because no one was expecting any reports, no one discovers the problem until hours later. (By this time there may be quite a few reports waiting to print) I was trying to use the command rcvmsg (msgq qsysopr). [...]
Answer Question
| May 25, 2010 2:23 PM
CL, CLP, CLPROGRAM, RCVMSG, RPG, RPG ILE, RPGLE, V5R4
There are numerous reports which automatically print throughout the day. Often there may be a message waiting on the printer and because no one was expecting any reports, no one discovers the problem until hours later. (By this time there may be quite a few reports waiting to print) I was trying to use the command rcvmsg (msgq qsysopr). [...]
/COPY function and how work?
Hi everybody, I know what /copy made in RPGIV, but I need a certification for this. In a Prototype I put /copy after I compile I don’t need the source of /copy until the object need modifications, that’s right? And after this if I copy this object to other machine, is possible I have errors [...]
Answer Question
| December 15, 2009 4:31 PM
AS/400, Free Format, ILE RPG, RPG, RPG ILE
Hi everybody, I know what /copy made in RPGIV, but I need a certification for this. In a Prototype I put /copy after I compile I don’t need the source of /copy until the object need modifications, that’s right? And after this if I copy this object to other machine, is possible I have errors [...]
Where is the source file of an ILE program?
Hi, I need to find out the name of the source file of a ILE program. I am getting a blank using DSPOBJD. I know it can be rtrieved using dsppgm but I need to run the process in a program and strore the output in a file. Pls help… !! This is kinda urgent… [...]
Answer Question
| December 11, 2009 8:00 AM
RPG, RPG ILE, RPG IV, RPGLE
Hi, I need to find out the name of the source file of a ILE program. I am getting a blank using DSPOBJD. I know it can be rtrieved using dsppgm but I need to run the process in a program and strore the output in a file. Pls help… !! This is kinda urgent… [...]
Email message sent is printing 2 pages
I have written a process where a salesrep remotely orders a special item that we don’t normally carry and it signals the buyer to order it. When the item is ordered the system emails the salesrep. I use SNDDST with *LMSG with a short note stating the item has been ordered with item, vendor, customer and PO [...]
Answer Question
| November 30, 2009 3:16 PM
CLLE, RPG ILE, SNDDST
I have written a process where a salesrep remotely orders a special item that we don’t normally carry and it signals the buyer to order it. When the item is ordered the system emails the salesrep. I use SNDDST with *LMSG with a short note stating the item has been ordered with item, vendor, customer and PO [...]
BUILTIN FUNCTION..
HOW CAN WE CHECK THE EXISTANCE OF ANY RECORD IN ANY PF WITHOUT READING THE FILE IN RPGILE . . IS THERE ANY BUILT IN FUNCTION THANKS/
Answer Question
| May 19, 2010 12:47 PM
RPG Functions, RPG ILE, RPGLE
HOW CAN WE CHECK THE EXISTANCE OF ANY RECORD IN ANY PF WITHOUT READING THE FILE IN RPGILE . . IS THERE ANY BUILT IN FUNCTION THANKS/
ILE Best method of Parameter handling using Procedures
Using prototypes and Procedure interfaces I understand that no parameter may be returned if a procedure is called directly via CALLP. And only one parameter may be returned if procedure is called via EVAL with return. What is the best way to return multiple parameters from a procedure (assuming I don’t want to use PLIST/PARM’s). For [...]
Answer Question
| October 19, 2009 11:09 AM
RPG, RPG ILE, RPG ILE Parameter handling
Using prototypes and Procedure interfaces I understand that no parameter may be returned if a procedure is called directly via CALLP. And only one parameter may be returned if procedure is called via EVAL with return. What is the best way to return multiple parameters from a procedure (assuming I don’t want to use PLIST/PARM’s). For [...]
Debug ILE Cobol 400
How can I display (Eval) subset of a filed while debugging ILE Cobol program. How can I view the content of a field from specified position and lenght. I know how to review the content for a specified lenght, but can’t find a way to view part of the string from position 256 for example.
Answer Question
| October 15, 2009 10:41 AM
COBOL debugging, COBOL/400, ILE COBOL/400, RPG ILE
How can I display (Eval) subset of a filed while debugging ILE Cobol program. How can I view the content of a field from specified position and lenght. I know how to review the content for a specified lenght, but can’t find a way to view part of the string from position 256 for example.
RPGILE
Hi All In activation group suppose 2 program is reading same file the 1[sup]st[/sup] record reading by 1st program how second program will read second record how will do in RPGILE by activation group?
Answer Question
| May 19, 2010 6:29 AM
RPG ILE
Hi All In activation group suppose 2 program is reading same file the 1[sup]st[/sup] record reading by 1st program how second program will read second record how will do in RPGILE by activation group?
Can one use strdbg to trace code through a interactive program that allows update to display screens
Can one use strdbg to trace code through a interactive program that allows update to display screens. I can get the add item and delete item part to work but not the update/change function which craps out with a error message. There seems no reason for this message, but there has to be a reason [...]
Answer Question
| October 16, 2009 8:59 PM
DDS, RPG Date Formatting, RPG debugging, RPG ILE, RPGLE, STRDBG
Can one use strdbg to trace code through a interactive program that allows update to display screens. I can get the add item and delete item part to work but not the update/change function which craps out with a error message. There seems no reason for this message, but there has to be a reason [...]
Restrict the user in RPG ILE
Hi All, tell me that how to restrict the user to call program at time, means one user can call one program that time another user can’t call same program..? Regard’s Yogesh
Answer Question
| October 13, 2009 6:49 AM
AS/400 user administration, AS/400 user authority, AS/400 user sessions, RPG ILE
Hi All, tell me that how to restrict the user to call program at time, means one user can call one program that time another user can’t call same program..? Regard’s Yogesh





