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


in a cl pgm
records are copied to a file in qtemp
a pgm is called to delete records from the file in qtemp
no of records in file in library qtemp is checked wat shud
be the count of records let say it was 10 initially
endpgm

Answers were Sorted based on User's Feedback



in a cl pgm records are copied to a file in qtemp a pgm is called to delete records from the file i..

Answer / raghav

In following scenario the Record count will be 10.

CL program:

PGM

CPYF FROMFILE(LIB1/PF1) TOFILE(QTEMP/PF1) MBROPT(*ADD) CRTFILE(*YES)

SBMJOB CMD(CALL PGM(PGM1)) JOB(PGM1)

ENDPGM

In this scenario when a job is submitted in the batch, the system has its own QTEMP library and hence RPG program PGM1 will not find file PF1 in Qtemp.  

Is This Answer Correct ?    1 Yes 1 No

in a cl pgm records are copied to a file in qtemp a pgm is called to delete records from the file i..

Answer / aa

Considering that all the records in the file in library QTEMP were deleted, the record count at the end would be zero.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More RPG400 Interview Questions

1.String operatio such as moving the characters to the variables? 2.what are the building functions for check file longs? 3.which of the following methods will make externally describe file fields available to a program? A: A/copy statement that specifies the library file and member of the field reference file source code B: A data structure definition specification that names the file on the EXTNAME keyword C: A data structure definition specification that names the file on the IMPORT keyword? D: A Definition specification for each desired field with the REFFLD keyword

1 Answers   CSC, CTS,


What is significance of a file designated as a Primary file in Rpg400 program....also what's use of secoundry file

1 Answers  


how to retrieve RRN value in RPGLE program

3 Answers  


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  


What is difference between bind by copy and bind by reference?

0 Answers  


How to declare the more than one file in cl/400.

13 Answers   IBM,


what is decimal data error? when it will come and how to achieve(rectify) this error please give me solution as well as code

2 Answers   IBM,


In case if I want to know whether a record exists in a file, which one do you prefer CHAIN or a SETLL and why ?

1 Answers  


what is data area and how it is used in rpg program ?

0 Answers   IBM,


can anyone explain aboutovrOVRDBF,OPNQRYF, OVRSCOPE and OPNSCOPE?

2 Answers   TCS,


Anybody know the difference of primary file and full procedural file

4 Answers  


how to check on which PF , the LF is dependant ?

4 Answers   IBM,


Categories