what is pointer error in rpg IV?

Answers were Sorted based on User's Feedback



what is pointer error in rpg IV?..

Answer / syam

Parameters are passed between RPG or CL programs, they are
actually passed as pointers, not data. Pointer is a
variable that contains the address of another variable

Either parameter missing or parameter mismatch.

Is This Answer Correct ?    11 Yes 0 No

what is pointer error in rpg IV?..

Answer / syam

Parameter Error

Is This Answer Correct ?    3 Yes 3 No

what is pointer error in rpg IV?..

Answer / szeke

As i know pointers are only simple memory adresses stored in variables. There are many situation they can be used, not only passing parameters. APIs from C, dynamically allocated variables, structures.

A %TRIMR can be a pointer in the original field instead of building another instance of it. Working with orbital buffers, parsing them, break into separated fields, from another ILE language or module can be received and send by a number of pointers instead of copy the value.

Doing anything with a pointer value doesn't point to the correct location is a pointer error. All the data types represent pointers anyway, but they maintained by the compiler, not by the programmer. To forget freeing unused pointed memory areas is another type of error. The use of pointers can cause such errors like invalid data, or memory leaks, since the compiler has no idea what we store on that variable, it must believe we're right. In java, the compiler strictly checks an array out of bound pointer operation, in C++ i have the right to browse the whole memory from a simple a[2] defined array by adressing it as a[12345]. Also no expensive type checkings, so the performance is better.

I can erase a value, or don't even initialize it in the memory but the pointer will still exist and pointing into a non-defined value.

The instruction pointer is also a pointer, can be manipulated by GOTO jumps, or Subs, OOP programming languages are just abstract definitions over the same thing, basically every procedure will be called by its pointer in the memory, determined by compiler or the user, in compile time or run-time... It is called procedure pointer. To point into a variable instead of a PROC is another serious error...

So, what is the question exactly?

Is This Answer Correct ?    0 Yes 0 No

what is pointer error in rpg IV?..

Answer / ddd

parameter error means related with fields?

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More IBM AS400 AllOther Interview Questions

how can i get the cursor position in display screen to to display my window?

5 Answers  


when this error ocuurs in openqry file 'OPNID(BANKPF) for file BANKPF already exists.'?

2 Answers   ITC Infotech,


How to know the number of records in a pf through clp program?

7 Answers   Bank Of America,


if dspatr(pc) and csrloc were specified for a format, which keyword would have priority?

1 Answers   IBM,


what is a spool file?

0 Answers   IBM,






what is the command used to invoke rlu ?

1 Answers   IBM,


What is SDA used for?

7 Answers  


i have two pfs it contains "Status" fields in the same name "status in both the pf's...But i used the same name in display file...when i enter a status thru disp file it willbe added to pf1...so i want to rename "Staus " field in pf2 through program...............wat will do..give coding?

5 Answers   CTS,


What controls which printer a report goes to?

4 Answers   Wipro,


CAN WE INSERT FIELD IN PHYSICAL FILE BY USING OPNQRYF?

4 Answers  


what is a keyed physical file?

1 Answers   IBM,


What is a message file?

1 Answers  


Categories