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

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

6 Answers   CTS,


To check the locks , we use cmd WRKOBJLCK , but how we confirm whether it's objeck lock / member lock. I confused with the Lock type and Status values...Can any body please tell me ...

5 Answers  


I have two sessions S1 & S2 under this 3 jobs(say j1,j2,j3 under session S1) And 2 jobs(Say j4, j5 Under session S2)is running. How many QTEMP & how many LDA will create for the same.

9 Answers   IBM,


What is the purpose of PUTOVR keyword?

2 Answers  


How to index LF by relative record no (RRN)

1 Answers  






What is the difference between inner join @ outer join

4 Answers  


What is file identifier where we can use?

0 Answers  


How to read data from Nth member of a physical file containing some X number of members in it? "Provided member names are unknown"

4 Answers  


WHAT IS MENT BY RECORD LEVEL IDENTIFIER ? WHAT IS THE PURPOSE OF THIS?

1 Answers  


ESCAPE message sent by child program can be handled by parent program using which keyword?

2 Answers  


How can we override a file during runtime in rpg?

0 Answers  


How can we find out whether the job is interactive or Batch through RPG program? 2) How can we find out through CL program?

6 Answers   CSC,


Categories