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 / swadesh

clear and reset both opcodes are used for clearing the
fields.difference is that clear only clear but reset is
used for clear & then initialise the numeric fields with
zero and character with blanks.

OPEN & CLOSE opcodes are used for explicitly open and
close the file.In precise all files are automatically open
when these are processed by program bt at somepoint if we
want this should not be implicitly then open we use these
keywords.
SFLNXTCHG :Its always read those records which changed 2
or more times.this is declared in subfile(SFL) format not
SUBCTL format.

Is This Answer Correct ?    14 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

distinguish between terminating a program through seton lr and return?

567


is there any way I can ease my rpg controls on numeric input fields? How about an input date field?

612


how to get the cursor position?

718


what is the maximum number of subfiles that can specified in a display file ?

1048


when are the unique constraints executed?

682






what is scan and xlate?

1091


is their a difference in cobol400 for the release 5.2 and 6.1 at the as400.

2119


how many printer files can be defined in f specs ?

967


how many maximum spaces could be given in o specs?

632


How do you check object lock

372


How can we update a specific field in RPG?

930


how do you pass parameters in cl?

1055


what is subfile?

951


How we will get issues on AS/400 technology ? I mean which issue/Defect Tracking tool is using in all companies when any issue comes? Can anybody explain about the work flow of AS/400 project ? plzzz

1154


how many files, printer files you can describe in a rpg?

632