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
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 |
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 |
What is SFLNXTCHG keyword why it has used and where? Briefly explain with Example.
Why Rpg/400 is Famous?
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
How we will read call stack?
A rpg or clp command to find if the file field is defined as a character or numeric field.
what do you mean by an input subfile, what are the keywords required?
what is overlay? how can we pass parameters in cl or rpg programing? how can we get data area value in cl or rpg programming?
1. Which Built-In-Function will you use to achieve the following functionality? CLONO1NO2NO3 Factorl÷÷+OpcdeFactor2++÷ResultLenDHHiLoEq C QTY IFLT *ZERO C QTY MULT -1 QTY C ENDIF a) %ABS b) %TRIM c) %TRIMS d) %UNS
What is I90(Insure 90)?
How to declare the dynamic(run time) array in rpgle? can you please give example
wat is scan and check ? give me real time scenarios where we used these keywords in ur projects?
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.