Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

1)In a pf if we delete a record then how to insert a new
record at the same place in that pf?? any logic or code?
2)A batch job is taking a lot of time to run,found that it
is going into loop and wrapping up so how to skip that loop
and process the job without changing the code?
3)In which scenario C D I R comes and C D G F comes in a
job?
4)If a job came to error while processing a file how we can
know at which record the error hit and how to skip that
record and process other records without changing program
code?

Answer Posted / sreenadh

1.post deletion of existing record you have to call QCMDEXC api to run a cl command i.e, RGZPFM then insert the record again
2.you have to fail the looping condition manually in batch debug mode using EVAL then came out from debug
4.Take opt 5 after WRKACTJOB againts the job than opt 14 (work with opened files)+f11 to get RRN value where it stuck currently and whats the file name too
Now go to sql fix the junk data and retry the job again

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i am using non join multiple format my 3 database file is like that pf97 R REC ENAME ETENNO ESTATUS K ENAME pf98 R REC1 ENAME ESAL K ENAME PF99 R REC3 ENAME CRDCARD EID K EID & MY NON JOIN LOGICAL FILE IS ALSO SAME EXCEPT RECORD NAMES BEFORE I TRIED WITH 2 FILES SO ITS SAYS ERROR I.E.(Key field attributes must be same as for previous formats. ) SO I CHANGED KEYFIELD ACCORDING TO PF SO ITS WORKING BUT AFTER ADDING 3 FILES ITS SAYING SAME ERROR . I DONT KNOW I NEW IN AS400 PLLZ HELP ME I HAVE ONE MORE QUE. CANT BE USE DIFFERENT KEYFIELD (NOT ACCORDING TO PF) IN NON JOIN LOGICAL FILE.

1433


how to read database records without locking them?

1758


How to reverse the string in rpg

1739


what does the ovrdbf command do?

1057


Pose, there are 100 records in the file.i need to retrieve all the records matching/equal to the particular name field. How can we do the above using search criteria other than using the if cond?

984


what opcode could be used to test an alphanumeric field for all numeric values?

1694


In 'o' Specs What Is The Opcode For Write?

1115


in conjunction with which statements can orxx and andxx conditions be used ?

1795


when do you use f-spec. Continuation line ?

1604


What is a query can be displayed without saving it?

1053


what is the difference between normal upddta to pf and updating using dfu program?

1271


how to pick up the changed records every time in a subfile after the first change made ?

1729


how to write code for singlepage in sqlrpgle with update ?

2777


difference between view and index ?

1091


what is procedure prototype and procedure interface.

1144