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

Q1.How to read the Array? Q2.How to copy the content of one Array to another Array?

4 Answers   IBM,


What is the purpose of record level identifier?

0 Answers  


1.String operatio such as moving the characters to the variables? 2.what are the building functions for check file longs? 3.which of the following methods will make externally describe file fields available to a program? A: A/copy statement that specifies the library file and member of the field reference file source code B: A data structure definition specification that names the file on the EXTNAME keyword C: A data structure definition specification that names the file on the IMPORT keyword? D: A Definition specification for each desired field with the REFFLD keyword

1 Answers   CSC, CTS,


purpose of pannel group??/

2 Answers   CTS,


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

0 Answers  






1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?

0 Answers  


What will happen if we r using seton lr after return or vice versa.

5 Answers  


When it is desirable to describe files Internally?

0 Answers  


I have a Physical File name 'File1', which is present in two libraries named 'LIB1' & 'LIB2'. These 2 libraries are listed in the library list. Would like to access data from this file from these two libraries using RPG program. How to do this, any idea?

4 Answers  


Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.

0 Answers  


In RPG program one file using as a PRIMARY file while running program some of the records reading twice any body know why its happening

2 Answers  


How can you determine the number of characters in a variable?

3 Answers  


Categories