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

When it is desirable to describe files Internally?

0 Answers  


during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.

0 Answers   IBM,


Need a sql query: retrive all duplicate records in table

3 Answers  


we are sending data of physical file to screen design and it is showing no record why?

1 Answers   NTT Data,


How can we know running job is batch or interactive?

0 Answers  






i want to retrieve record b/w 2 dates in as400

2 Answers   L&T,


Can we possible to key with the date field?

1 Answers   IBM,


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 hav 2 logical files(L1,L2) both r derived from one physical file(P1). how can i use both the logical files in one RPG program? if yes what i have to d.

5 Answers   TCS,


suppose a job is running for 15 minutes after that it goes to message wait? what are the impact analysis

1 Answers  


can i use unique key in LF

3 Answers   TCS,


1.Where we declare Variables in RPG/400,RPGIV,RPGILE.? 2.When do we use D-spec and I-spec in real time ?.what is difference between them?

1 Answers   HP,


Categories