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 |
Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?
Setps to create .csv file on IFS folder in AS/400( V4R3)....?
One of the job in subsystem is in Running status,expected time to complete this job is 2 minutes. But from last 5 -10 minutes this job is still in running status....What are the possible reasons...and What are the actions i need to perform to check this...?
Can we trigger an rpg program which has user interaction with display file when updating a file using the command ADDPFTRG?
How to declare the more than one file in cl/400.
When PGMA calls PGMB for the first time PGMB executes the *INZSR. PGMB uses the RETRN operation to return to PGMA. When PGMA call PGMB the second time is the *INZSR executed?
I have 1000 records in a file. I would like to generate 10 identical reports from this record with same format (structure of records) how do I do this?
I want to declare the number of elements of an array dynamically in RPGLE ? Is it possible? If yes, then how do I do it ?
Hi guys, anybody know How RPG/400 code can be converted to RPG IV code with a single command?
As Packed veriable store 2 digits in 1 byte and ZONE variable store 1 digit in 1 byte... Please tell me when we have to use Packed and Zone variable...?
Have a join logical file with more than one members with different record formats. So how can we read the different members from this file and also how we can read the different record format from the join logical?
What is I90(Insure 90)?