we hav job which is running as batch. it takes atleast
06hours to complete tht job. bu i wana do tht job with in
3hours.........?
so plz post ur answers

Answers were Sorted based on User's Feedback



we hav job which is running as batch. it takes atleast 06hours to complete tht job. bu i wana do th..

Answer / malleswarao

Hi! we have to create multiple threads in the job. when we
submit the job ,multiple threads will run parallelly. so it
will take very less time to complete the job. This is the
best way I believe.

Please let me know if there are any suggestions.

Is This Answer Correct ?    8 Yes 0 No

we hav job which is running as batch. it takes atleast 06hours to complete tht job. bu i wana do th..

Answer / nagaraju

We need to change the job priority of the job.

Is This Answer Correct ?    1 Yes 0 No

we hav job which is running as batch. it takes atleast 06hours to complete tht job. bu i wana do th..

Answer / murali

instead of RPG, go with Query RPG to reduce the no of hits
on file, it will reduce the time while working with bulk
data.

Is This Answer Correct ?    0 Yes 0 No

we hav job which is running as batch. it takes atleast 06hours to complete tht job. bu i wana do th..

Answer / prem

If the file having BULK data use the file level Keywork
BLOK(*YES)

Is This Answer Correct ?    0 Yes 0 No

we hav job which is running as batch. it takes atleast 06hours to complete tht job. bu i wana do th..

Answer / alagan v

It depends on your logic. You have to use the proper LF's in order to run the program fast. For example, if you read a transaction file for a period, it will take long time. So better create a LF with transaction date as key and sort by date and read it. This will help you to reduce the run time.

Is This Answer Correct ?    0 Yes 0 No

we hav job which is running as batch. it takes atleast 06hours to complete tht job. bu i wana do th..

Answer / sai reddy

Hi Malleswarao,

How can we create Multiple treads for the Batch job? Even if we create multiple treads, how can we ensure that each tread is processing the same file but not the same data?..can explain this..Thanks in advance.

Is This Answer Correct ?    0 Yes 0 No

we hav job which is running as batch. it takes atleast 06hours to complete tht job. bu i wana do th..

Answer / kranti

I think priority of the Job is one more option.. But it again depends on the priority of the existing job..

Is This Answer Correct ?    0 Yes 1 No

we hav job which is running as batch. it takes atleast 06hours to complete tht job. bu i wana do th..

Answer / raj

1. DSPJOBLOG
2. DSPJOB, check if there has any lock waiting statue.
3. STRSRVJOB and debug.

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More RPG400 Interview Questions

We have a Physical file, after reading 5 records,it has to read LF of that same Physical file,Will it start reading from Ist record or will start reading from 5th record?

5 Answers   Hexaware,


How to add 2 new fields in a file? How many ways are there in as400?

2 Answers  


How Chain operation copies the record's data to the input buffer for the program?

0 Answers   IBM,


How can we override a file during runtime in RPG? Without using OVRDBF or calling a CL program

1 Answers   UST,


what is data area and how it is used in rpg program ?

0 Answers   IBM,






Can you copy the records created by the OPNQRYF to other files and how?

2 Answers  


I have 1000 records in a file. I would like to generate 10 identical reports from this record with same format (structure of records) how do I do this?

1 Answers   IBM,


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  


IN RLU what are the record level keyword is used?

5 Answers   iGate, TCS,


How to find d key field of a pf that doesn’t have source physical file?

2 Answers  


If there are 1000 member(PGM type) in a SRC file. How can we compile in a CL program? ( It need to be done in a loop)?

1 Answers  


what is post opcode do

1 Answers   CTS,


Categories