Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do you know if a record exists without doing a READ and
CHAIN?

Answers were Sorted based on User's Feedback



How do you know if a record exists without doing a READ and CHAIN?..

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

How do you know if a record exists without doing a READ and CHAIN?..

Answer / david lex

setll KeyA FileA;
if %equal( FileA );
...
endif;

Is This Answer Correct ?    8 Yes 0 No

How do you know if a record exists without doing a READ and CHAIN?..

Answer / kcsyam

SETLL with inticator EQ = 1

Is This Answer Correct ?    10 Yes 5 No

How do you know if a record exists without doing a READ and CHAIN?..

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

How do you know if a record exists without doing a READ and CHAIN?..

Answer / venkateshp foursoft

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

How do you know if a record exists without doing a READ and CHAIN?..

Answer / sravs

We Can Done THis By using Setll with %found also..

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More RPG400 Interview Questions

Why we cannot call a service program? If I add a PEP can i call the service program?

1 Answers   DELL,


Q1.How we can copy the data of file one session to another session? Q2.how we can execute a loop infinitely in AS/400 coding? Q3.In ALDON tool,multitask is posible on a perticular object by the user?

6 Answers   CSC,


Write a program to display prime numbers between 1 to 100 using RPGLE.

1 Answers  


suppose if we want to update the data in cl what we will do?

9 Answers  


What you have to do in the display file when you are using message subfile?

1 Answers  


Please help me, I have created window subfile,I have created Footer with same lengh and postion of window SFL. When I call the pgm, first is shows only Footer and then it shows subfile records.This time Footer is not showsing ..plz hel me how can i do it...? Sameple DDS and RPG: A R WIN1 SFL A*%%TS SD 20090130 165346 MUNSHIJ REL-V4R2M0 5769- PW1 A FLD001 1Y 0B 4 3EDTCDE (Z) A ATFILE R O 4 7REFFLD (QWHFDBAS/ATFILE LIB/LIBF- A ILE) A R WINCTL SFLCTL (WIN1) A*%%TS SD 20090202 123459 MUNSHIJ REL-V4R2M0 5769- PW1 A ALTNAME ('y') A SFLSIZ (0004) A SFLPAG (0004) A WINDOW (FOOTER) A ROLLUP (27) A ROLLDOWN (28) A CF12 (12 'Cancel') A 50 SFLDSP A N51 SFLDSPCTL A 51 SFLCLR A 1 2'Select Option,Press enter' A 2 3'1= Select' A R FOOTER A* A WINDOW(8 31 9 43) A 8 4'F12 = Cancel' A R DUMMY ASSUME A 24 10' ' in RPG: Dow *IN12 = *Off Write Footer Fxfmt WInCTL

2 Answers  


can I touch the array during treatments?

0 Answers   IBM,


if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.

0 Answers  


Assume my file has 100 records and I want to see only first 10 records. Is this possible through lf?

1 Answers  


while i am using the dspmsg command on comman line in Mocha am getting error like Not authorized to message queue message my messagequeue Name? can anybody help me how to change my message queue Am anable to see my messages in message queue

1 Answers  


i hav 2 logical files(L1,L2) both r derived from one physical file(P1). how can i use both the logical files in one RPG program? if yes what i have to d.

5 Answers   TCS,


Can we journel logical file and access path? Can we use commitment control for non-join L.F?

4 Answers  


Categories