can anyone say,what is the use of operation extended H/N/P?

Answers were Sorted based on User's Feedback



can anyone say,what is the use of operation extended H/N/P?..

Answer / karthika

N for reading records without locking it. but, make sure
that you are not doing any updation in the DB file as
updation needs locking the record.This operator extender is
applicable for all the READ operations

H for Half Adjust
E for Error detection
D for Date format
P for Padded blanks

eg: MOVE(P) 'RAM' A 20

'RAM' WILL BE IN RIGHT END AND PADDED BLANKS WILL BE IN
LEADING SPACE

Is This Answer Correct ?    4 Yes 0 No

can anyone say,what is the use of operation extended H/N/P?..

Answer / shalini

There are 4 operation extenders N,E,H,D, dont have any idea
about P. N is for performing any operation without lock for
example: read(n) means read without lock.
E is for error detection at operation level,
H is for half adjust for example 2+5.68=7.68 however with
the help of eval(h) a=2+5.68;value of a will be 7.7 and D
is use for date

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More RPG400 Interview Questions

Suppose I have 3 jobs a b and c. I want to submit b after successful completion of a and want to submit c after successful completion of b. Without using job scheduler or job queue, how can I do that through cl program?

1 Answers  


Hi,Please give me complete code with this logic. The question is how to read the records from a file with load an array of size with error condition? (The logic is Z-Add 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN9 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO)please give me complete code with explanation?

1 Answers  


Difference between creating a report using Printer file and WRKQRY(Query Report) ?

3 Answers  


How to identify the object has compiled with the debug view as *source without using STRDBG?

6 Answers  


how to retrieve particular field records from a physical file,say i have a physical file called 'employee' in it i have to retrieve the records of a field 'admin' present in pf 'employee' using rpg,but i should not use logical file or openquery file.

3 Answers   iGate, Wipro,






can anyone explain aboutovrOVRDBF,OPNQRYF, OVRSCOPE and OPNSCOPE?

2 Answers   TCS,


If record-format name in an externally-described file has already been defined as a file-name.how to solve this?

2 Answers   CTS,


Can we found a record existance in a file w/o reading the file?

6 Answers   Traitsys Technologies,


How can we call CL program to RPG? How many number of parameter we can pass

2 Answers   TCS,


3 members in a databasefile .how to read records from all the members?????????

4 Answers   CTS,


How would display prime numbers using CL program?

0 Answers   Hexaware,


Job is in MSGW while reading the input file and writing a new record / updating a reacod due to Duplicate data error. What action would you take ( C D I R )...?

4 Answers  


Categories