How can we distinguish between an online and batch program
in IMS environment?
Answers were Sorted based on User's Feedback
Answer / s
The data communication PCB(IOPCB) is automatically included
by the IMS at the beginning of the PSB for an MPP or BMP.
This default data communication PCB is used to insert O/P
messages to the originating terminal. ALTPCB is coded to
identify alternate destination for the O/P messages, say
printer.
/DIS PGM will tell whether its online or batch. If the pgm
is not found, it is purely batch. Otherwise its an MPP or
BMP.
| Is This Answer Correct ? | 13 Yes | 1 No |
Answer / vijay
IN PSB GENERATION
TYPE=TP (ONLINE)
TYPE=DB(BATCH)
THIS IS CORRECT
VIJAY
mf.vijay@yahoo.com
| Is This Answer Correct ? | 11 Yes | 1 No |
Answer / cts
if online programs then we can see ALT-PCB.
but it is not in Batch programs.
| Is This Answer Correct ? | 6 Yes | 3 No |
Answer / lan
Just like to add an additional line :
a batch program can also have a call to IO-PCB(checkpoint
call)
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / prashant
i donot agree. To find out wether is batch or online , you
should type the following terminal command on IMS SCREEN -
/DIS PGM 'PRGRAM NAME'
| Is This Answer Correct ? | 7 Yes | 5 No |
Answer / roshi
in jcl u can see it , in pgm=(mode, , ,...) parameters
for online & batch mode there are different code like
BMP,DLI & MMP.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / arunkumar
by seeing the io-pcb in the application program
| Is This Answer Correct ? | 3 Yes | 3 No |
Answer / raj
One more ways is like, by seeing PSB definition, if any of
the GSAM files used then it will be batch IMS. but this not
true all the time
| Is This Answer Correct ? | 3 Yes | 3 No |
Answer / raj kumar meher
During execution you can see on parm parameter either this
program is batch mode than it parm=dl/i,if online then
parm=MPP,OR BMP
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / luiz
For IMS, the answer to that question really depends on your definition of batch and online:
If you consider Online as purely interactive transaction processing, as performed by a MPP, JMP or IFP region, then the best way to clear the doubt is to display the program, see if it has one or more transactions associated with it, and look if the class(es) of said transaction(s) is(are) defined in the executing MPPs of the IMS. If there's a transaction but its class is not defined on the MPPs, your program is probably used in batch processing by a transactional BMP; if the PGM has no associated transaction, then it is used by a non-transactional BMP. Any other IMS programs that cannot be displayed are batch DLI ones.
On the other hand, if you consider Online as any processing that can only happen when IMS is up, then if your program can be displayed, it is an online program - be it for a BMP, MPP, JBP, JMP or IFP. Any program not defined in IMS is an offline program meant to be used in batch by a DLI job.
| Is This Answer Correct ? | 0 Yes | 0 No |
What information does a psb contain?
Define ims (db/dc)?
What is secondary indexing?
Define dl/i?
how to create a changeman read only audit and update only audit Specifications for the Read only Audit 1) Read HFFD database unqualified. 2) Read FDRT, FDDM, FDAP segments. If FDAP-APP-STS is ‘2’ read the FDAV segment and get the FDAV segment which has FDAV-APV-OPTION as ‘X’ If FDAP-APP-STS is ‘5’ read the HFAC database. Read the ACRT segment qualified based on the key obtained from the FDAP segment from HFFD database. Conditions for writing into output file: a. App Type should be NEWR b. App Status should be 1, 2 & 5. c. Write 50 records per app status. For e.g. first 50 records for App status 1, 2 & 5 each The output file should contain the following fields from the database FDRT-COMP-CTRY-CODE X(03). FDRT-CUST-ID-NUM X(10) FDDM-DEM-SEQ-NUM X(01) FDAP-APP-SEQ X(02) FDAP-JNT-IND X(01) FDAP-APP-STS X(01) FDAV-APV-OPTION X(01) FDAV-APV-DT X(06) FDAV-APV-AMT X(07) ACRT-ACCT-NUM X(06) ACRT-SEG-BUS-TYPE X(02) ACRT-NM1-LAST X(19) ACRT-NM1-SS X(09) ACRT-NM1-1ST X(12) ACRT-NM1-INIT X(01) ACRT-NM1-SFX X(03) ACRT-NM1-TITLE X(02) PSB – DVAN2BMP In case you get a GE for any of the conditions, write to output file along with the details of the database segment which was not found. We need to complete this whole process by tomorrow. Run the audit in DLI mode. 2) Sort the output file created in step 1 on Cust ID, Dem Seq & App Seq. Specifications for the Update Audit 3) Take the output of step 2 as input for an update audit. Details are as follows: Read each record & check the app status. If app status is less than 2 then update the FDAP-NEW- MONEY-ENT to $25000.00 PSB - AUDBMPJ The job would be a BMP job. The test job would be run in IMSE region. Note - The proc (which will be called by the job) and the job should also be present in the change-man package itself. You’ll have a test job in your PDS along with overrides to execute the program in test regions. The job would be a DLI job. The test job would be run in IMSE region. It’ll have the following steps. 1) Delete-define output and error files. 2) Use a copybook for the output layout.
How man key fields and search fields can a segment have?
What is the return code you get after a successful IMS call?
What is PSB,PCB & ACB?
Explain the maximum number of fields allowed per segment and what is the maximum number of fields per database?
What is a database record?
Explain psbgen process?
What is acbgen process?