Hi, Riz try only WRITE
e.g WRITE R.API.SL.FACI.BALANCES TO F.API.SL.FACI.BALANCES, IDD regards, Talha On Mon, Mar 15, 2010 at 9:03 AM, M Rizwan <[email protected]> wrote: > Dear Guys, > > Please find the relevant part of coding and screen shot of PGM.FILE. > As said before, this code works fine thru mainline but not in BATCH > mode. The only difference is JOURNAL.UPDATE is used in mainline > program and I removed this in the BATCH mode. > > Y.NO.OF.FACI = DCOUNT(R.CAL.FACI,@FM) > FOR I = 1 TO Y.NO.OF.FACI > > IDD = R.CAL.FACI<I> > CALL > F.READ(FN.API.SL.FACI.BALANCES,IDD,R.API.SL.FACI.BALANCES,F.API.SL.FACI.BALANCES,Y.LM.ERR) > > FIND Y.YEAR.MONTH IN > R.API.SL.FACI.BALANCES<API.SFB.YEAR.MONTH> SETTING F.FM <http://f.fm/> > ,F.VM,F.SM <http://f.sm/> THEN > R.API.SL.FACI.BALANCES<API.SFB.LIBOR.LCY,F.VM> += > R.CAL.LIBOR.LCY<I> > R.API.SL.FACI.BALANCES<API.SFB.MARGIN.LCY,F.VM> += > R.CAL.MARGIN.LCY<I> > R.API.SL.FACI.BALANCES<API.SFB.LIBOR.FCY,F.VM> += > R.CAL.LIBOR.FCY<I> > R.API.SL.FACI.BALANCES<API.SFB.MARGIN.FCY,F.VM> += > R.CAL.MARGIN.FCY<I> > END ELSE > R.API.SL.FACI.BALANCES<API.SFB.YEAR.MONTH,-1> = Y.YEAR.MONTH > R.API.SL.FACI.BALANCES<API.SFB.OUTS.AMOUNT,-1> = 0 > R.API.SL.FACI.BALANCES<API.SFB.DRAWDOWN,-1> = 0 > R.API.SL.FACI.BALANCES<API.SFB.REPAYMENT,-1> = 0 > R.API.SL.FACI.BALANCES<API.SFB.LIBOR.LCY,-1> += > R.CAL.LIBOR.LCY<Y.FM <http://y.fm/>> > R.API.SL.FACI.BALANCES<API.SFB.MARGIN.LCY,-1> += > R.CAL.MARGIN.LCY<Y.FM <http://y.fm/>> > R.API.SL.FACI.BALANCES<API.SFB.LIBOR.FCY,-1> += > R.CAL.LIBOR.FCY<Y.FM <http://y.fm/>> > R.API.SL.FACI.BALANCES<API.SFB.MARGIN.FCY,-1> += > R..CAL.MARGIN.FCY<Y.FM <http://y.fm/>> > END > > CALL F.WRITE(FN.API.SL.FACI.BALANCES,IDD,R.API.SL.FACI.BALANCES) > > NEXT > > ************** > > PGM.FILE Screen Shot : > > PROGRAM API.PGM.BUILD.SL.INT <http://api.pgm.build.sl.int/> > > > ------------------------------------------------------------------------------ > 1 TYPE.............. B > 2. 1 GB SCREEN.TITLE BATCH JOB TO UPDATE SL INTEREST > 3 ADDITIONAL.INFO... IN THE SL BALANCE FILE > 4. 1 BATCH.JOB...... @API.PGM.BUILD.SL.INT<http://api.pgm.build.sl.int/> > 5 PRODUCT........... SL > 14 CURR.NO........... 1 > > > On 12/03/2010, Yohan <[email protected]> wrote: > > Hi > > > > In T24 batch routine even if you include JOURNAL.UPDATE ,inside journal > > update itself check whether system is running under batch .if it is then > > journal update routine will not process ahead > > > > since you have not post the routine here its hard to give a solution > > > > > > Best Regards > > Yohan > > > > > > > > On Thu, Mar 11, 2010 at 5:31 PM, Srinivas <[email protected]> > wrote: > > > >> Hi, > >> > >> As per your mail , you said that it works fine when you are running as > >> Mainline program . This means you have used JOURNAL.UPDATE in your code > if > >> you are using F.WRITE statement. > >> > >> Check your batch routine , and if JOURNAL.UPDATE is there , remove it > from > >> the code since it is a BATCH program. > >> > >> I guess this might be one reason . Anyways post your code as well BATCH > >> record also along with PGM.FILE. > >> > >> On 11 March 2010 10:13, Deepak Kumar <[email protected]> wrote: > >> > >>> Hi can you please post the code.... > >>> > >>> > >>> On Thu, Mar 11, 2010 at 12:23 AM, jaro <[email protected]> wrote: > >>> > >>>> Hard to say if you don't provide the code. > >>>> did you enter the field BATCH.JOB in the PGM.FILE with your routine > >>>> name? > >>>> and check JOB.TIMES outputs, EB.EOD.ERROR and COMO outputs from the > >>>> COB and search for your particular job. > >>>> > >>>> On Mar 10, 9:00 am, M Rizwan <[email protected]> wrote: > >>>> > T24 : R06 / Jbase 4.1.5.7 > >>>> > > >>>> > Hello > >>>> > > >>>> > I have created a routine which updates certain local tables. This > >>>> routine > >>>> > works fine when I run it from the "Classic" mainline, with "M" as > type > >>>> > mentioned in PGM.FILE. > >>>> > However the same routine fails to update the tables, when I run it > as > >>>> > a "JOB" at COB where it has "B" as type in PGM.FILE, though the > status > >>>> in > >>>> > BATCH shows it has successfully compelted the task. > >>>> > > >>>> > Can anybody tell me what's wrong... > >>>> > > >>>> > Thanks > >>>> > > >>>> > Riz. > >>>> > >>>> -- > >>>> Please read the posting guidelines at: > >>>> http://groups.google.com/group/jBASE/web/Posting%20Guidelines > >>>> > >>>> IMPORTANT: Type T24: at the start of the subject line for questions > >>>> specific to Globus/T24 > >>>> > >>>> To post, send email to [email protected] > >>>> To unsubscribe, send email to [email protected] > >>>> For more options, visit this group at > >>>> http://groups.google.com/group/jBASE?hl=en > >>>> > >>> > >>> > >>> > >>> -- > >>> Deepak Kumar > >>> > >>> -- > >>> Please read the posting guidelines at: > >>> http://groups.google.com/group/jBASE/web/Posting%20Guidelines > >>> > >>> IMPORTANT: Type T24: at the start of the subject line for questions > >>> specific to Globus/T24 > >>> > >>> To post, send email to [email protected] > >>> To unsubscribe, send email to [email protected] > >>> For more options, visit this group at > >>> http://groups.google.com/group/jBASE?hl=en > >>> > >> > >> > >> > >> -- > >> Regards, > >> > >> SrinivasYadav. G > >> Mobile No: 00966 - 540625165 > >> > >> -- > >> Please read the posting guidelines at: > >> http://groups.google.com/group/jBASE/web/Posting%20Guidelines > >> > >> IMPORTANT: Type T24: at the start of the subject line for questions > >> specific to Globus/T24 > >> > >> To post, send email to [email protected] > >> To unsubscribe, send email to [email protected] > >> For more options, visit this group at > >> http://groups.google.com/group/jBASE?hl=en > >> > > > > -- > > Please read the posting guidelines at: > > http://groups.google.com/group/jBASE/web/Posting%20Guidelines > > > > IMPORTANT: Type T24: at the start of the subject line for questions > specific > > to Globus/T24 > > > > To post, send email to [email protected] > > To unsubscribe, send email to [email protected] > > For more options, visit this group at > > http://groups.google.com/group/jBASE?hl=en > > > > > -- > Rizwan > > -- > Please read the posting guidelines at: > http://groups.google.com/group/jBASE/web/Posting%20Guidelines > > IMPORTANT: Type T24: at the start of the subject line for questions > specific to Globus/T24 > > To post, send email to [email protected] > To unsubscribe, send email to [email protected] > For more options, visit this group at > http://groups.google.com/group/jBASE?hl=en > -- Please read the posting guidelines at: http://groups.google.com/group/jBASE/web/Posting%20Guidelines IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24 To post, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jBASE?hl=en To unsubscribe from this group, send email to jbase+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
