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
Answer Posted / 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 |
Post New Answer View All Answers
What is a record lock error?
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
how does the rpg element work?
what are the key words you must use when using a subfile?
what is file information data structure?
thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400
When it is desirable to describe files Internally?
What is the purpose of record level identifier?
can you debug ile rpg program using isdb?
When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?
Interviewer asked me write down DDS for load all subfile .can anybody write dds
what is the rpg system?
what do you mean by an input subfile, what are the keywords required?
How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique
if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.