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

Whether a module can consists of many procedures or it can consist of subprocedures having a main procedure?If it is possible that it can contain many individual procedures than can we have different name for complete module and how do we call this module in main modul?

3 Answers   Steria,


how can you display specific subfile page on the screen in unequal subfile?

0 Answers   IBM,


how does the rpg element work?

0 Answers   IBM,


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

0 Answers  


suppose we have 10 members in physical file and i have to use 4 out of 10 so how can we read this in RPG

3 Answers   TCS,






if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.

0 Answers  


What is Multi Occurrence Data Structure(MODS)?

1 Answers   CTS,


how do you use commitment control in rpg?

0 Answers   IBM,


You have a *USE authority on a Library and *All authority on a file in that Library.Can you change the data in that file?

1 Answers  


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

1 Answers  


what is batch debug in as400?

3 Answers  


steps for debugging two rpg programs????

4 Answers  


Categories