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

What is the compilation option that has to he specified while compiling an RPC program which uses a file having date data type field?

3 Answers   HSBC, IBM,


two attributes which govern the excecution of a job>>>>??

2 Answers   CTS,


1..Write an sql query to find the employee name who is having 2 phone numebr? 2.Write an sql query to the the second highest salary of the employee?

4 Answers  


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?

3 Answers  


When a object will be locked & when a record will be locked? Plz explain.

2 Answers  


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

4 Answers   IBM,


what is the difference between do while and do until?

0 Answers   IBM,


What is the RPG cycle?

3 Answers   CSC,


what are the key words you must use when using a subfile?

0 Answers   IBM,


how can we can we the data decimal error?how can we open such file in support

1 Answers  


Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?

0 Answers  


1.what are the ARITHMETIC EXPRESSIONS IN CL PGM? 2.How to PASSING PARAMETER TO CL PGM?

1 Answers   NetCracker,


Categories