Welcome To T24All
Welcome, Guest
Username Password:

RUNNING.UNDER.BATCH
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: RUNNING.UNDER.BATCH

RUNNING.UNDER.BATCH 2 years, 10 months ago #2922

  • torres_pat
  • OFFLINE
  • Junior Boarder
  • Posts: 21
  • Karma: 1
Hi Friends: what happens to the RUNNING.UNDER.BATCH variable when you are running a process with the agents schema. I mean, I am testing a multithreaded routine, and RUNNING.UNDER.BATCH comes with value 1, nevertheless I am not in the middle of COB. Or, is there another way of validating if you are in COB or not??
Best Regards,
Pat

Re:RUNNING.UNDER.BATCH 2 years, 10 months ago #2935

  • thisisavin
  • OFFLINE
  • Expert Boarder
  • Posts: 83
  • Karma: 2
Hi Pat,
I am not sure of the RUNNING.UNDER.BATCH variable status. As far as my knowledge goes it is bound to have two values '0' and '1'. 1 when COB is running and '0' while not.
You can check whether EOD is running or not by reading the SPF file.
There is a single record with id as SYSTEM and the field OP.MODE in that record holds status of the system. These are three values that it holds

O - On-line
B - Batch mode
R - Database restored (recovery)

So you can check whether this field has the value 'B' to meet your requirement.
Hope it helps.

regards,
dj

Re:RUNNING.UNDER.BATCH 2 years, 10 months ago #2957

  • dajrokan
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Karma: 1
Hi man,
if you are running multithread job, this variable is set to 1 for thread environment, because you are running batch job (so job is runnig under batch :)), anyway, you can simply bypass this by setting 0 to common variable R.U.B in case if you need call some core job which uses RUB without impact to parallel processing (pls, no warranties)

thisisavin: do you mean F.DATES? I hope :)

d.

Re:RUNNING.UNDER.BATCH 2 years, 10 months ago #2971

  • thisisavin
  • OFFLINE
  • Expert Boarder
  • Posts: 83
  • Karma: 2
Hi dajrokan,

I meant the SPF file which holds the record SYSTEM.
There is a field called OP.MODE which is non inputable which will indicate the current operation mode which i have explained in my previous mail.

regards
dj

Re:RUNNING.UNDER.BATCH 2 years, 10 months ago #2980

  • dajrokan
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Karma: 1
thanks,
I had never noticed this field, so the second one possibility is
DATES, field CO.BATCH.STATUS. Both of these fields are cached in common variables, you don't need to read records directly

regards
d.
  • Page:
  • 1
Time to create page: 0.41 seconds