what is the difference between clear and reset opcodes and
open and close opcodes?please tell me in real time senario
with example please?

And

What is the use of SFLNXTCHG?Where we can use this?

Answer Posted / pravin

clear and reset both opcodes are used for clearing the
fields and then initialise the numeric fields with
zero and character with blanks difference is that if we
define any initilialise value for that var in pgm reset
initialize it by that value but clear initialize it by zero
or blanks.
OPEN & CLOSE opcodes are used for explicitly open and
close the file.

SFLNXTCHG :Its always read those records which changed
in uppdatesubfile.this is declared in subfile(SFL) format
not
SUBCTL format.

Is This Answer Correct ?    22 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the function of rlu ?

968


how can you detect and handle a record lock situation?

1197


the maximum number of subfiles that can defined in a rpg program for one display file is ___ .

2129


how to declare a constant variable in the freeformat?

956


the output from my cgi is correctly interpreted by ms internet explorer, whereas netscape navigator would display it as a plain text. What should I do to have also netscape interpreting the html output from my cgi?

553






define the purpose of the iter operation?

1006


what are the three types of keywords associated with printer file ?

998


what is procedure prototype and procedure interface.

611


What Does Lokup Does In Tables & Arrays?

719


Explain this error: "all record formats for externally-described file abcd ignored or dropped due to error; file ignored."?

733


what are different record spacing keywords in rlu ?

1192


what is the purpose of dynslt keyword?

1017


what are the different commands used in rlu ?

1439


what is the disadvantage of using global variable?

676


how can u check no of records in a file?

657