Questions tagged [rpg]

DO NOT use this tag for Role Playing Games!! RPG (Report Program Generator) is a high-level programming language (HLL) for business applications. IBM is the creator and primary vendor of RPG, but the language is available from other mainframe and microcomputer manufacturers, including Unisys. Use this tag for older non-ILE versions of RPG from IBM and for non-IBM variants of the language.

280 questions
-1
votes
1 answer

How to query a table in Fixed format RPG and check record with if-condition?

So, say a table ##TAB has one column #VALUE which contains 'SDM' & 'LB' as entries. The column size is 12 characters. I want to query the table using Fixed-Format RPG and compare it later in IF condition. The logic is simple but I'm not sure about…
Harsh Arora
  • 214
  • 2
  • 10
-1
votes
1 answer

How to delete a record from a subfile in RPGLE when the record is not already written on to a Physical file

How to delete a record from a subfile in RPGLE, the record is not written on to a Physical file, so deleting the record from the PF and reloading the subfile will not do, is there any other way to achieve this?
Kunal Roy
  • 729
  • 3
  • 11
-1
votes
1 answer

When i am calling JAVA Class from RPG Program i am facing error saying "java.lang.NoClassDefFoundError

i am developing the program writen by Scott Klement on "creating Spreedsheet with RPG using POI". i am able to create ".xlx" Spreedsheet but when calling the procedure which calls "XSSFWorkbook" am facing the below mentioned issues. enter code…
Nicolas
  • 45
  • 1
  • 5
-1
votes
2 answers

Can host variables in IBM i SQL have spaces?

Is it possible to provide space between colon and variable name when using host variables in RPG/COBOL embedded SQL. I have never encountered a space in any example programs.
Abhishek Tiwari
  • 332
  • 2
  • 16
-2
votes
1 answer

How to update a file using a CURSOR in SQLRPGLE

Can someone tell me how to update a data using the CURSOR in sqlrpgle.Is there a way updating data just by using CURSOR rather than using the Update statement in SQLRPGLE?
Kunal Roy
  • 729
  • 3
  • 11
-2
votes
1 answer

Read physical file, retain largest amount and delete all others with same search argument

I'm doing a program that reads all records in physical file using logical file(transaction code, transaction date and transaction amount), checks whether there are 2 or more records with same trans code and trans date, and determine what's the…
mikecj
  • 9
  • 1
-2
votes
1 answer

Convert HEX to characters using bitwise operations

Say I've got this value xxx in hex 007800780078 How can I convert back the hex value to characters using bitwise operations? Can I?
LppEdd
  • 20,274
  • 11
  • 84
  • 139
-2
votes
1 answer

Counting down a number in the title using php/jquery

I need to automatically count down a php variable -1 every 5 seconds displayed in the title oft the page and automatically update eg. title: '23/30 Auto Battles Remaining'. Is this possible to do in php/jquery? Any help would be appreciated. Thanks…
sk1p
  • 1
-3
votes
1 answer

Need SQL command that will insert a row while taking id from row

I need SQL command that will insert a row after specific row. Example:- Before table Id. Name. 1. Xyz. 2. Xyz 3. Xyz Want result need to add 'Abc' data after each 'xyz' having same id…
-3
votes
1 answer

Packaged Data Free-form RPG

I'm in Charge of an IBM i Series. Now I have to program some new things. I have to read some data from an internally described file and use it in my program but it contains packed decimal data and I'm not quite sure how to handle that. How do I…
Scrober
  • 13
  • 5
1 2 3
18
19