Can we found a record existance in a file w/o reading the file?

Answers were Sorted based on User's Feedback



Can we found a record existance in a file w/o reading the file?..

Answer / srisailam

Yes by using file information data structure

Is This Answer Correct ?    5 Yes 2 No

Can we found a record existance in a file w/o reading the file?..

Answer / srisailam

by using setll and %equal()

Is This Answer Correct ?    2 Yes 0 No

Can we found a record existance in a file w/o reading the file?..

Answer / venky

setll

Is This Answer Correct ?    6 Yes 7 No

Can we found a record existance in a file w/o reading the file?..

Answer / srisailam

yes.by using file information data structure.

Is This Answer Correct ?    1 Yes 2 No

Can we found a record existance in a file w/o reading the file?..

Answer / ravikumar

1.With the help of CHAIN or READ opcodes we can find out record existence.


2.we can find out with the help of FILE INFORMATION DATA STRUCTURE..

Is This Answer Correct ?    0 Yes 1 No

Can we found a record existance in a file w/o reading the file?..

Answer / nkumar

Yes without reading a file we can check the existence of records in a file. There are 3 ways.
1) Type DSPFD and define the file and press enter. Go to las and see the total no of records.

2) Using the file information data structure.

3) Using the RTVMBRD using in the CL program and check teh NBRCURRCD filed value. this will have the total no of records.

Is This Answer Correct ?    3 Yes 5 No

Post New Answer

More RPG400 Interview Questions

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 ?

2 Answers  


wat is scan and check ? give me real time scenarios where we used these keywords in ur projects?

2 Answers   Four soft,


1) How to declare a file? 2) How to define a display file? 3) How to monitor error messages in RPG? 4) How to find the attributes for subfiles? and what is the DDS for subfiles?

2 Answers   TCS,


where we give the MSGSFL in rpg400?

4 Answers  


Im traying to get out put of this below mention simple logic code.But im geting out of different.(im trying with my laptop trhough my company server. DCL &FIELD1 *CHAR 10 VALUE('TCS AS/400') DCL &FIELD2 *CHAR 10 CHGVAR(%SST(&FIELD2 1 10))(%SST(&FIELD1 10 1) Can you tell me the value of field2 after excuted of CHGVAR command.

2 Answers  






how do I declare a minor?

0 Answers   IBM,


1.How to load Records of a Physical file(PF) in the reverse order, in CL program?

2 Answers   Cap Gemini,


what is *place and *auto keyword in prtf ?plz explain

0 Answers   CSC,


I have a file .In that file i have 3 fields. Those fields are eno, ename, esal.Keyfield is eno. In that file i have data like this for eno 1,2,3,4,5. Now i need to display 2nd record. That means i need to set the pointer on 2nd record... Then, write the complete rpg program using setll.

1 Answers  


Mr.Yallamanda Reddy P thanks for your answer sir,can we use test(D) opcode in RPG/400,if yes please help me by eloborating on that answer by writing a sample code for that sir

2 Answers   iGate,


I want my simple Green screen should refersh every 1 min ,How can I do it..? Please share the logic

2 Answers  


Setps to create .csv file on IFS folder in AS/400( V4R3)....?

3 Answers   TCS,


Categories