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

What is a query can be displayed without saving it?

0 Answers   IBM,


Hello friends, i am new to AS/400. Can any one help me in AS/400 i meant say can you send me some FAQS and interview questions.

7 Answers   HanceInc, IBM,


If login Screen has been modified by adding current date to be displayed. What Step to be followed to Keep that date as Current date Note: If no steps taken then it will display only the compilation date

2 Answers   BridgeStone,


Suppose you have 3 members in a database file. How to read records from all the members Without using CL (OVRDBF) i.e. it should be handled exclusively in an RPG program?

6 Answers   IBM,


what is lokup opcode?

1 Answers   IBM,






what would be the effect on the field where reverse image, underline and highlight display attributes were active?

1 Answers   IBM,


how can I predict the performance of my cgis?

0 Answers   IBM,


what is OUTFILE?what is the uses and disadvantage? where we can use this?

2 Answers  


List the steps/commands necessary to accomplish the following: a. Copy data from the file ORDHDR into file ORDHIST b. The file ORDHIST may or may not exist c. If the file ORDHDR does exist, it may or may not contain data d. The file ORDHIST may or may not contain data, if the file does contain data the old data should be erased

1 Answers  


describe the difference between the dowxx and douxx operations?

1 Answers   IBM,


how can see logical file based on which physical file and vice versa

1 Answers   IBM,


what is the correct about QTEMP library(below mention)? a.it is Unique to a job b.it can be shared between different job c.it can only be deleted by QSECOFR d.Non Please give me the answer for this?

8 Answers   Wipro,


Categories