View previous topic :: View next topic
|
Author |
Message |
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Hi all,
I encountered a strange thing while executing CEMT commanda in Jcl
The commands that I executed where
Close a file in FCT
Do process of replacing file contents
Open the file again
The job executed successfully as file contents were replaced
but the file was still closed
But where as I split the above function to two different jobs the file was closed,replced and opened again for cics process
I had
Close file
Replacing the file contents in one job and open file in another
The job executed successfully as expected
My question here is
Do the CICS commands given in jcl stack up like LIFO?
Please clarify |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
i have always used the sequence:
disable
close
proceess
enable
open
1 job
and it is FIFO |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Ok will try it and get back to you Dick
Thanks |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
How did you close the file -- using a program, or a vendor package, or issuing a console command via JCL?
How is the file defined in RDO (CEDA)? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
my answers are predicated on my experience with a few vendor packages
that provide Batch CEMT transactions.
Robert's questions are more important,
since what ever you are doing may have nothing to do with my experience. |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Hi Robert,
I issued console comands in JCL |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Quote: |
or issuing a console command via JCL? |
Quote: |
I issued console comands in JCL |
i give! have no idea what you are talking about.
please explain. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Sorry, do you mean issuing CEMT transactions thru batch jobs
using either 3rd party tools or something written inhouse,
or is there an IBM utility that does this? |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Hi Dick,
Apologies for my bad use of vocabulary
I issued CEMT commands via JCL Using IEFBR14 utility |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Then you need to be aware that console commands in JCL are executed as soon as the job gets an initiator -- ALL of the console commands. They don't wait until the appropriate moment when that step is executed, they run right away. Hence your batch job is NOT performing as you expected and you need to re-evaluate your approach. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
ok, yeah i was bitchen about terminology, my apologies,also.
by the way, Pandora-Box,
what was the disposition of the VSAM file during the batch run?
if during the update, the disp=old,
that could be a reason the CEMT transactions to reopen the file in CICS,
if issued in the same job,
did not work. |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Hi Robert,
Thnaks
So I would have three jobs
one to close
one to process
one to enable n open it
Hi Dick,
yes my vsam is of disp=old
As Robert explained Its better to have three different jobs
Thanks all |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
and even then You might not be sure about the proper sequence !
( if submitted by hand in one shot )
might work if a scheduler is used. |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Hi Enrico,
Yes I am making use of scheduler only
Thanks |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
If you're doing the close / disable in one command, you can get by with just two jobs: one to close / disable the file in CICS via console command in step 1 of the job, then step 2 of the job runs your update program, then a separate job to open / enable the file in CICS -- as long as the second job does not start until after the first job completes. |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Hi Robert,
I just realised two jobs should suffice already and got it done
Thanks anyway |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Great! Hope it goes well, then. |
|
Back to top |
|
|
|