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...


I have a PF(ABC)with no key fields.
PF(ABC)have 2 fields (cusno and cusname).
Please let me know how can i read the cusno = 1150 directly
from PF in CL and RPG program(Without creating the LF and
without reading the complete file and then compare 1150)

Answers were Sorted based on User's Feedback



I have a PF(ABC)with no key fields. PF(ABC)have 2 fields (cusno and cusname). Please let me know ..

Answer / vijay

In CL PGM

do CPYF from file ABC to ABC qtemp with the selection
field (CUSTNO) = 1150 (value) so ABC in qtemp have only one
record with that cust no. then read this file in CL program.


In RPGLE...

you can used SQLRPGLE program and write a SQL select
statement on the on file ABC.

Is This Answer Correct ?    13 Yes 1 No

I have a PF(ABC)with no key fields. PF(ABC)have 2 fields (cusno and cusname). Please let me know ..

Answer / mayank taneja

In CL program:
Ovrdbf and opnqryf

In RPG Program:
SQLRPGLE

Is This Answer Correct ?    11 Yes 0 No

I have a PF(ABC)with no key fields. PF(ABC)have 2 fields (cusno and cusname). Please let me know ..

Answer / manan---as400 so cute

CL
This can be done by two ways :- a)ovrdbf b) opnqry

RPG

This can be done by SETLL + READE or READ and the second
requirement by COMP




Cheers

Is This Answer Correct ?    6 Yes 13 No

Post New Answer

More RPG400 Interview Questions

How to update physical file in rpgle without using display file?

4 Answers   GalaxE, IBM, TCS,


How do you do indexing in a physical file?

2 Answers  


WHAT IS MENT BY RECORD LEVEL IDENTIFIER ? WHAT IS THE PURPOSE OF THIS?

1 Answers  


what is batch debug in as400?

3 Answers  


A particular job executing on the iS is not behaving as expected and is operating in an environment in which it can be debugged. What commands would you use to debug and observe the program?

2 Answers   IBM,


what is meant by record lock.how records are locked.what is the purpose of record lock.if records are locked what happens.how to find out which record is locked.

4 Answers   HCL,


What would be the result on writing a data record to a PF file using the "WRITE" opcode after the SETON *ON *INLR statment?

10 Answers  


1.How can you search an entire source file for a particular field name? 2.How can you find the differences between two versions of the source for the same program? 3.What is a hidden field as it relates to a sub file? 4.How do you display a sub file that has no records in the sub file?

8 Answers   HCL,


suppose i i am changing / updating record of subfile and i want to change the record in reverse order . means i want to change the bottom record first and so on through readc . how i do it please any one explain .

4 Answers   CSC,


How to add 2 new fields in a file? How many ways are there in as400?

2 Answers  


How can we make use of SETLL operation in CL?

11 Answers  


what is flat file?

1 Answers   IBM,


Categories