Define the purpose of the following code (If you know, how would this be written in RPG ILE)

HI LO EQ
C *IN66 DOUEQ *OFF
C KEY1 CHAIN
FILEA 90 66
C 66 CALL
PGM1 PRM
C ENDDO

Answer Posted / sanjeet kumar

Whenever the indicator *IN66 becomes *OFF, the control transfers after ENDDO statement. Otherwise, it reads the records from the data base file based on indicator specified on HI position. If the specified indicator on LO position becomes *OFF, then only CALL statement will execute.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

. How to know why the OPM job is in MSGWAIT state?..WHAT COULD BE THE REASON FOR it?

7042


Pose, there are 100 records in the file.i need to retrieve all the records matching/equal to the particular name field. How can we do the above using search criteria other than using the if cond?

600


What is the draw back of Procedures? why we are going to Modules?

1230


what is the use of jdftval in join logical file?

1119


all i need to know about cmpseqdat parameter in cmppfm, how it works and can we retrieve line sequence and date from the output?

2415






which are the figurative constants used in rpg?

845


What Does 'sr' In Columns 7-8 Of C Specs Mean?

1069


under given circumstances, my cgi should link to another site. How to implement this?

579


how to read database records without locking them?

1143


What is compiler directive in as400? Give example of compiler directive.?

576


If I want to execute Sftp commands(LS & GET) stored in Physical file from CL program automatically...Can u Plz tell me how can I do this?...How the script will look?? THANX FOR NY HELP...

2184


what keyword must be used with protect keyword ?

1131


define the purpose of the *bcat function?

914


define the purpose of the %sst function?

944


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

2181