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
what is a 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.
what are the key words you must use when using a subfile?
what do you mean by an input subfile, what are the keywords required?
what was the robotech rpg?
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?
how do I declare a minor?
what is program status data structure?
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...?
how do you use commitment control in rpg?
How to handle duplicate error handling in RPG?
How to select highest score of each subject or how to select highest income of every month?
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
what is the rpg system?
What are the types of identifiers?