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

wat is curser?? and its types???

4 Answers   HSBC,


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,


What is file identifier where we can use?

0 Answers  


Need a sql query: retrieve all duplicate records in table?

1 Answers  


Whether a module can consists of many procedures or it can consist of subprocedures having a main procedure?If it is possible that it can contain many individual procedures than can we have different name for complete module and how do we call this module in main modul?

3 Answers   Steria,






how many variables can we declare in cl pgm?

13 Answers  


How many program bind in one module....

0 Answers  


What is the syntax of passing parameters to a procedure by value?

1 Answers  


In a particular program one file is used where override command is applied to a file, now this program calls another program where we want to use the same file but without override.How it can be done?

6 Answers   Hexaware,


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

2 Answers  


What is the difference between copybooks and subprocedures in as400?

0 Answers  


A pgm subroutine calling child subroutine, that child subroutine again calling parent subroutine, u have 1000 lines of code, with out debugging , how can u find that error??? Is there any command to find errors in pgm???

3 Answers   HSBC,


Categories