How do you know if a record exists without doing a READ and
CHAIN?
Answers were Sorted based on User's Feedback
Answer / avinash
by using file information data structure we can find the
number of records in a file.
| Is This Answer Correct ? | 18 Yes | 0 No |
Answer / david lex
setll KeyA FileA;
if %equal( FileA );
...
endif;
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / rizwan
Without using Prg if you want to check the records of a Pf
through command line you can use
DSPFD (Display File Description)
which gives you the Total number of records as well as
deleted records in a PF.
| Is This Answer Correct ? | 5 Yes | 1 No |
PGM PARM(&NBRRCD)
DCL &NBRRCD TYPE(*DEC) LEN(10 0)
RTVMBRD FILE(STR) MBR(*FIRST) +
NBRCURRCD(&NBRRCD)
ENDPGM
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / sravs
We Can Done THis By using Setll with %found also..
| Is This Answer Correct ? | 0 Yes | 5 No |
How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...
Maximum how many files declare in rpgle
how to retrieve RRN value in RPGLE program
steps for debugging two rpg programs????
Can a run time array be declare like below with no specified number of elements ? Is it possible ? DFLD_ARRAY 7 DIM() INZ(*blanks) What does this mean ? Does this mean that the number of array elements will be dynamically declared during run time ?
Suppose my file has 10 fields and I want to make the 2nd field zeros in all records. And assume I have millions of records and I dont want to read each record and update the desired field with 0. Any other way to do this in one step operation?
How to call one program from another program in RPG? please help me with the code
HOW DO YOU DISPLAY A DISPLAYFILE AT OTHER WORKSTATION? CAN WE MOVE A PHYSICAL FILE? WITHOUT MOVING A FILE?
Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.
3 members in a databasefile .how to read records from all the members?????????
in which journalling which attributes are necessary??/
1) How to retrieve RRN through RPG ? 2) How to pass parameter by value ? 3) How to trap the error through the RPG/400
10 Answers IBM, Tech Mahindra,