how we retrieve records without using key field (ex:name)
from Physical File through RPG in as/400?

Answer Posted / kumar vikas

Ffile1 I F E DISK (no keyfield is given)
C
C *start setll file1
OR
C 1 setll file1
C
C read file1
C dow not %eof
C id dsply
C name dsply
C read file1
C enddo

Is This Answer Correct ?    15 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

give an eg of ACQ-(ACQUIRE),BIT OFF,BIT ON,DEALLOC,DUMP,FEOD,FORCE,MHHZO,MHLZO,MHLLZO,MLHZO,REL,RESET,TESTZ,TESTB,TESTN----GIVE SMALL EXAMPLE TO THE OPCODES...TO UNDERSTAND FUNCTIONING...........

3285


how do I play {insert rpg system here}?

585


what is a rpg?

701


during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.

755


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

709






How can we know running job is batch or interactive?

656


can you debug ile rpg program using isdb?

739


What is difference between bind by copy and bind by reference?

1730


what is the rpg system?

668


how do you use commitment control in rpg?

757


How to declare the pull button in AS/400..

1881


what is the difference between do while and do until?

703


write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen

831


What are the types of identifiers?

572


how do I declare a table or array in rpg iv?

737