Incorrect relative record number or field selection error
I get the above error when trying to run a program when it trys to write a display format. The program had been working and suddenly started giving this error. There doesn’t seem to be any relative record numbers involved. I would be happy if someone could give me a clue as to what I [...]
Answer Question
| February 17, 2010 11:22 AM
RPG
I get the above error when trying to run a program when it trys to write a display format. The program had been working and suddenly started giving this error. There doesn’t seem to be any relative record numbers involved. I would be happy if someone could give me a clue as to what I [...]
What is the difference between dow and dou commands?
Linda wrote in with this question recently: “What is the difference between dow and dou commands? Does anyone have a sample subfile program that explains how subfiles work?” Do you know? Linda could really use your help. – Debra Tart, associate editor, Search400.com
Answer Question
| November 11, 2010 8:23 AM
RPG
Linda wrote in with this question recently: “What is the difference between dow and dou commands? Does anyone have a sample subfile program that explains how subfiles work?” Do you know? Linda could really use your help. – Debra Tart, associate editor, Search400.com
Send a message to a message subfile
Nitin wrote in with this question recently: “How can I send a message to a message subfile from a sub procedure that is called from main procedure.” Do you know how this can be done? – Debra Tart, associate editor, Search400.com
Answer Question
| November 22, 2009 8:10 AM
RPG
Nitin wrote in with this question recently: “How can I send a message to a message subfile from a sub procedure that is called from main procedure.” Do you know how this can be done? – Debra Tart, associate editor, Search400.com
Using SQLRPG on a DDM File
Hi, I need to access a DDM file via SQLRPG -since SQL does not directly support DDM -can it be done by first using OVRDBF on the DDM file to override it to a local file and then use SQLRPG ? Help would be much appreciated for a project I am currently working on. Thank [...]
Answer Question
| November 22, 2009 7:33 AM
DB2 Universal Database, RPG, RPGLE
Hi, I need to access a DDM file via SQLRPG -since SQL does not directly support DDM -can it be done by first using OVRDBF on the DDM file to override it to a local file and then use SQLRPG ? Help would be much appreciated for a project I am currently working on. Thank [...]
Anyone ever use the SNDRPY command in CL?
I am using the CHGPF command to change a file. I know it will result in data loss, and I will get a messaage that I must reply “I” to ignore and then it will change the file. The file is used all day long and I would like to have a CL program change [...]
Answer Question
| December 14, 2005 4:56 PM
AS/400, CLP, DB2 Universal Database, RPG, RPGLE
I am using the CHGPF command to change a file. I know it will result in data loss, and I will get a messaage that I must reply “I” to ignore and then it will change the file. The file is used all day long and I would like to have a CL program change [...]
SET verb in COBOL
Hi The SET verb in COBOL set the value of a particular variable to a specified value. Now say I decalred a variable as 05 WS-SWITCH PIC X(01). 88 VALID-VALUES VALUE ‘A’, ‘B’, ‘C’. 88 NOT-VALID-VALUES VALUE ‘D’, ‘E’, ‘F’. If I want to set the value of WS-SWITCH as ‘A’, we can do as [...]
Answer Question
| December 3, 2005 3:36 AM
AS/400, CLP, DB2 Universal Database, RPG, RPGLE
Hi The SET verb in COBOL set the value of a particular variable to a specified value. Now say I decalred a variable as 05 WS-SWITCH PIC X(01). 88 VALID-VALUES VALUE ‘A’, ‘B’, ‘C’. 88 NOT-VALID-VALUES VALUE ‘D’, ‘E’, ‘F’. If I want to set the value of WS-SWITCH as ‘A’, we can do as [...]
RPG/ILE re-entering workforce
I am 45 & want to re-enter workforce after 3 years out of IT. I used RPG for 15 years(not even ILE) and have BPCS experience. I have just picked up a couple of books (SQL and Free-format RPG) to study at home. I think it will be very difficult to get back in …. [...]
Answer Question
| June 18, 2008 7:39 PM
RPG, RPG ILE, RPGLE, SQL
I am 45 & want to re-enter workforce after 3 years out of IT. I used RPG for 15 years(not even ILE) and have BPCS experience. I have just picked up a couple of books (SQL and Free-format RPG) to study at home. I think it will be very difficult to get back in …. [...]
Utility to Print RPG Output Specs
Does anyone recall or use a utility that was used in “the old days” to print a listing of the O-specs in RPG II. The utility would review an RPG source member. It would then print a listing of what the output heading and detail lines would look like. It used “X”s and “9″s to [...]
Answer Question
| November 20, 2009 12:23 PM
RPG, RPG ILE
Does anyone recall or use a utility that was used in “the old days” to print a listing of the O-specs in RPG II. The utility would review an RPG source member. It would then print a listing of what the output heading and detail lines would look like. It used “X”s and “9″s to [...]
write in a PF file
Hi everyone! I have an RPGLE program that creates four physical files (using the QCMDEXC program). These physical files have no DDS. In the same program, I read another physical file (that’s a copy of a spool file). If the line (s) read met some specified criteria, it needs to be written to one of [...]
Answer Question
| November 28, 2005 10:03 AM
CLP, RPG, RPG ILE, RPGLE
Hi everyone! I have an RPGLE program that creates four physical files (using the QCMDEXC program). These physical files have no DDS. In the same program, I read another physical file (that’s a copy of a spool file). If the line (s) read met some specified criteria, it needs to be written to one of [...]
How to operating with Multiple Member PF in RPG ?
I have a multiple member physical file and I want to operate(read/update/delete) with specific member in RPG. The member name for that PF need to be set at runtime depending upon from which program this rpg program is called. I am writing the sample code that I was trying, but it ends up with compilation [...]
Answer Question
| November 20, 2009 12:06 AM
AS/400, CLP, DB2 Universal Database, RPG, RPGLE
I have a multiple member physical file and I want to operate(read/update/delete) with specific member in RPG. The member name for that PF need to be set at runtime depending upon from which program this rpg program is called. I am writing the sample code that I was trying, but it ends up with compilation [...]
STRSEU macro – how to run Repetitive tasks on source members
I want to run few CHANGE commands on list of source members and add some logic to the CHANGE commands – e.g. if a source line contains ‘AAA’ then do CHANGE ‘BBB’ to ‘CCC’ I want to be able to run it in Foreground and Batch. For those of you who understand z/VM or Z/os [...]
Answer Question
| November 20, 2009 10:22 PM
AS/400, CLP, RPG
I want to run few CHANGE commands on list of source members and add some logic to the CHANGE commands – e.g. if a source line contains ‘AAA’ then do CHANGE ‘BBB’ to ‘CCC’ I want to be able to run it in Foreground and Batch. For those of you who understand z/VM or Z/os [...]
Printek printer using tcpip
What does the spool file need to look like to print a barcode on a printek 4305 se printer? I cant figure out how to send the hex command to the printer so it understands that it is a command not just text.
Answer Question
| November 17, 2005 1:49 PM
AS/400, CLP, DB2 Universal Database, RPG, RPGLE
What does the spool file need to look like to print a barcode on a printek 4305 se printer? I cant figure out how to send the hex command to the printer so it understands that it is a command not just text.
STRSEU a member and display a message while edit is starting.
how can I run the command STRSEU and display a message to the user when the source is displayed. the message can be displayed in the TOP command line or anywhere else on the screen. thanks !
Answer Question
| November 20, 2009 11:15 AM
AS/400, CLP, RPG
how can I run the command STRSEU and display a message to the user when the source is displayed. the message can be displayed in the TOP command line or anywhere else on the screen. thanks !
email messages in rpg
Hi! I need to send an email message to a Lotus Notes Server. The information contained in this email will be sent by an RPG program. The big question is, how do I do that? Can anyone help me, please? Thanx in advance Melissa
Answer Question
| November 17, 2005 5:03 PM
Lotus Domino, RPG, RPG ILE
Hi! I need to send an email message to a Lotus Notes Server. The information contained in this email will be sent by an RPG program. The big question is, how do I do that? Can anyone help me, please? Thanx in advance Melissa
rpg
We just upgraded to an iSeries box with 5.3. We were running 4.6. My RPG programs function properly until I recompile the program. Then I get an compile error 7073 regarding the length of a key field not equal. The compile shows BIN2 (and sometimes multiples) after the other key fields and I can’t get [...]
Answer Question
| November 20, 2009 3:06 PM
AS/400, CLP, DB2 Universal Database, RPG, RPGLE
We just upgraded to an iSeries box with 5.3. We were running 4.6. My RPG programs function properly until I recompile the program. Then I get an compile error 7073 regarding the length of a key field not equal. The compile shows BIN2 (and sometimes multiples) after the other key fields and I can’t get [...]
Writing system errors to QPJOBLOG system file
Ped wrote in with this question recently: “From an ILE-C program, how do I code to write ‘system errors’ to the QPJOBLOG system file?” Can you help him out? – Michelle Davidson, editor, Search400.com
Answer Question
| November 20, 2009 9:25 PM
AS/400, RPG
Ped wrote in with this question recently: “From an ILE-C program, how do I code to write ‘system errors’ to the QPJOBLOG system file?” Can you help him out? – Michelle Davidson, editor, Search400.com
RPG ILE Debugging
How can I STRDBG for an interactive job that’s already running executing an RPG ILE program. Program already compiled with #all debug view, but no way to predict when the production program is going to fail.
Answer Question
| November 19, 2009 12:24 PM
AS/400, RPG
How can I STRDBG for an interactive job that’s already running executing an RPG ILE program. Program already compiled with #all debug view, but no way to predict when the production program is going to fail.
QSYSOPR not authorized to RTVUSRPRF
I have a job that runs continually in it’s own subsystem under the QSYSOPR profile. I need to retrieve print default values of the user that triggers the job to run. When I use the RTVUSRPRF command or QSYRUSRI API, I receive USER NOT AUTHORIZED message. I looked at the authorities for QSYSOPR and RTVUSRPRF [...]
Answer Question
| November 19, 2009 9:06 PM
AS/400, RPG
I have a job that runs continually in it’s own subsystem under the QSYSOPR profile. I need to retrieve print default values of the user that triggers the job to run. When I use the RTVUSRPRF command or QSYRUSRI API, I receive USER NOT AUTHORIZED message. I looked at the authorities for QSYSOPR and RTVUSRPRF [...]
QsnBeep
Does anybody know if I can use the QsnBeep (QSNAPI) several times in a RPG-ILE but with different ‘beeps’. For example, there are 2 possible errors in an interactive program, can I generate 2 different error-sounds ? Or does it ALWAYS uses the PC5250 host bell ? Although I think it is another story with [...]
Answer Question
| November 11, 2005 10:57 AM
AS/400, DataCenter, DB2 Universal Database, Development, ERP, RPG, Tech support
Does anybody know if I can use the QsnBeep (QSNAPI) several times in a RPG-ILE but with different ‘beeps’. For example, there are 2 possible errors in an interactive program, can I generate 2 different error-sounds ? Or does it ALWAYS uses the PC5250 host bell ? Although I think it is another story with [...]
DDS / RPG – cursor management
My question is regarding cursor management. My application displays list of members (using RPG and DSPF). There is one input field per row, in which the user enteres the option he wishes to preform on the selected row. The RPG processes the selected row, by the given option. My question is: When the RPG completes [...]
Answer Question
| November 19, 2009 9:44 AM
RPG
My question is regarding cursor management. My application displays list of members (using RPG and DSPF). There is one input field per row, in which the user enteres the option he wishes to preform on the selected row. The RPG processes the selected row, by the given option. My question is: When the RPG completes [...]





