1.Suppose my file has 10 fields and I want to make the 2nd
field Zeros in all records. And assume I have millions of
records and I dont want to read each record and update the
desired field with 0. Any other way to do this in one step
operation?
2. Assume my file has 100 records and I want to see only
first 10 records. Is this possible through LF?
3.I have 3 jobs A B and C. I want to submit B after
successful completion of A and want to submit C after
successful completion of B. Without using job scheduler or
job queue, how can i do that through CL program?
4.What is difference between Bind by copy and bind by reference?
Answer Posted / naga srinivas
1)Using SQL, we can set second field value as '0'
2)Based on RRN number we can retrieve the first 10 records
or otherwise copy the first 10 records using CPYF command
and you can use RUNQRY for new created file
3)Write a CL program in which u have to submit the 'A' job
after completion you can write code for 'B' and after 'C'
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
how do you use commitment control in rpg?
what is an online rpg?
How many program bind in one module....
do you use message subfiles? What are the necessary keywords required coding a message subfile?
what is kids-rpg?
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.
how does the rpg element work?
What is a record lock error?
what is the procedure and explain about real time scenario.
can you debug ile rpg program using isdb?
What is ment by record level identifier?
what is program status data structure?
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?
Explain mdt?
Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?