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

1.How you will find the program is batch or online in cl pgm? 2.How you will end the batch pgm when the job runs? write an logic? 3.In wich command the option *drop is used?

2 Answers   TCS,


i 'm new to as/400.in an interview i was asked this question.give a practical example for passing information or data through local data area. I know only that data area is an object used to store tiny bits of data or it can store one value at a time and it is used to store frequently changing values or datas.thats all i know about data area can any one tell me how local data area and user defined data area are used to pass data between jobs with a example or coding.thanks in advance.

2 Answers   CTS,


what is the necessary keyword needed to scroll subfile records?

0 Answers   IBM,


what is ment by "MDT"

2 Answers   TCS,


This is my Physical file 'EMPS' existing in library "TAMIL1" and its record format is 'EMPRCD" a)its source is R EMPRCD ENO 4 0 ENAME 10 EADD 10 b)The records present in EMPS are as follows ENO ENAME EADD 0001 tamil coimbatore 0002 kumar bangalore 0003 sunder bangalore 0004 arunkumar chennai 0005 pandi hyderabad 0006 santhosh hyderabad 0007 sasi salem 0008 kalai chennai 0009 suresh hyderabad 0010 vijay bangalore 0011 Arul chennai 0012 velu chennai 0013 khan bangalore 0014 praba chennai 0015 praba.p coimbatore 0016 anand ooty 0017 raja erode 0018 sankar erode 0019 vadivel namakkal 0020 anbu chennai 0021 Ajith mumabi c)now i want to select the 'ENAME' field records starting with 'S' for that i have created a RPG program its source code is PGM DCLF FILE(TAMIL1/EMPS) DCL VAR(&MYENO) TYPE(*CHAR) LEN(4) OVRDBF FILE(EMPS) SHARE(*YES) OPNQRYF FILE((TAMIL1/EMPS)) QRYSLT('ENAME *EQ %WLDCRD("S *")') READ: RCVF RCDFMT(EMPRCD) MONMSG MSGID(CPF0864) EXEC(GOTO CMDLBL(END)) CHGVAR VAR(&MYENO) VALUE(&ENO) SNDUSRMSG MSG(&MYENO) SNDUSRMSG MSG(&ENAME) SNDUSRMSG MSG(&EADD) GOTO READ END: CLOF OPNID(EMPS) DLTOVR FILE(EMPS) ENDPGM Is this coding correct sir,the program gets compiled,and if i call it it says query running but records are not displayed.please help me out

4 Answers   Virtusa,






1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.

2 Answers  


how do I do concatenation in rpg iv, like I do in cl?

0 Answers   IBM,


You have a *USE authority on a Library and *All authority on a file in that Library.Can you change the data in that file?

1 Answers  


two types of read performed in dataqueue?????

4 Answers   CTS,


i want code and what are used key words are ...like wrkmbrpdm screen (q) i have a file with 3 fields empno,empname,empaddr... here you give the empno it displays from that number to remaining empno's how? sub file screen: employee details pos to:empno then enter empno empname empaddr so file have 100 records from 1 to 100 so the above pos you give the 55 empno...it displays the from 55 to remaining... ...... please share this answel

2 Answers   IBM,


why we do STRSRVJOB in batch debugging in as400

1 Answers  


Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?

0 Answers  






Categories