IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

CEMT commands in JCL


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Thu Aug 02, 2012 11:40 am
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Aug 02, 2012 12:05 pm
Reply with quote

i have always used the sequence:

disable
close
proceess
enable
open

1 job

and it is FIFO
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Thu Aug 02, 2012 1:43 pm
Reply with quote

Ok will try it and get back to you Dick

Thanks
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Aug 02, 2012 2:12 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Aug 02, 2012 2:27 pm
Reply with quote

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
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Thu Aug 02, 2012 3:58 pm
Reply with quote

Hi Robert,

I issued console comands in JCL
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Aug 02, 2012 4:04 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Aug 02, 2012 4:12 pm
Reply with quote

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
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Thu Aug 02, 2012 4:17 pm
Reply with quote

Hi Dick,

Apologies for my bad use of vocabulary

I issued CEMT commands via JCL Using IEFBR14 utility
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Aug 02, 2012 4:30 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Aug 02, 2012 4:34 pm
Reply with quote

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
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Thu Aug 02, 2012 4:49 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Aug 02, 2012 4:55 pm
Reply with quote

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
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Thu Aug 02, 2012 5:00 pm
Reply with quote

Hi Enrico,

Yes I am making use of scheduler only icon_smile.gif

Thanks
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Aug 02, 2012 5:17 pm
Reply with quote

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
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Thu Aug 02, 2012 5:33 pm
Reply with quote

Hi Robert,

I just realised two jobs should suffice already and got it done icon_smile.gif

Thanks anyway icon_smile.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Aug 02, 2012 5:41 pm
Reply with quote

Great! Hope it goes well, then.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Doing basically a CEMT I TRA from wit... CICS 2
No new posts Console Commands All Other Mainframe Topics 4
No new posts commands missing in JESMSGLG JCL & VSAM 3
No new posts ZOS Console commands through USS REXX? CLIST & REXX 5
No new posts How can I know what tso commands are ... TSO/ISPF 18
Search our Forums:

Back to Top