whare we can use IN AND OUT AND UNLCK opcodes?please can
any body tell me in real time senario with example

Answers were Sorted based on User's Feedback



whare we can use IN AND OUT AND UNLCK opcodes?please can any body tell me in real time senario wit..

Answer / poorvi

For writing to a data area - OUT
For reading from a data area - IN
Before Writing to a data area we LOCK it and then unlock
(UNLCK) after writing to it

Is This Answer Correct ?    10 Yes 0 No

whare we can use IN AND OUT AND UNLCK opcodes?please can any body tell me in real time senario wit..

Answer / swadesh

When we use data area in (RPG400) we can read this by IN
write through OUT and when write data area we lock this
after write we UNLOCK it.so that we can use this again.

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More IBM AS400 AllOther Interview Questions

How to reverse a string using RPG?

0 Answers  


Pgm A is invoked through HTTP. It is in Activtion group QILE. Pgm A calls Pgm B and Pgm C. Pgm B is in activation group TEMPACTGRP. Pgm A ends in error. Pgm A is called again. But it gives an error that TEMPACTGRP still exists and files are present in QTEMP. What is the cause and how will u fix?

1 Answers  


how to write *pssr ?

0 Answers   IBM,


when are the referential constraints executed?

0 Answers   IBM,


what is join logical file?

1 Answers   IBM,






What is LDA?

1 Answers  


Difference between NOPASS & OMIT?

0 Answers  


what is maximum number of arrays allowed in rpg?

1 Answers   IBM,


what are two types of record are used in subfile?

1 Answers   IBM,


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

1 Answers   IBM,


Describe the function of SETGT operation in RPG language?

1 Answers  


what are the different commands used in rlu ?

1 Answers   IBM,


Categories