Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

CEMT commands in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
Pandora-Box

Moderator


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

PostPosted: Thu Aug 02, 2012 11:40 am    Post subject: CEMT commands in JCL
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    Post subject:
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

Moderator


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

PostPosted: Thu Aug 02, 2012 1:43 pm    Post subject:
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: 7908
Location: Bellevue, IA

PostPosted: Thu Aug 02, 2012 2:12 pm    Post subject:
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    Post subject:
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

Moderator


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

PostPosted: Thu Aug 02, 2012 3:58 pm    Post subject:
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    Post subject:
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    Post subject:
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

Moderator


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

PostPosted: Thu Aug 02, 2012 4:17 pm    Post subject:
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: 7908
Location: Bellevue, IA

PostPosted: Thu Aug 02, 2012 4:30 pm    Post subject:
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    Post subject:
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

Moderator


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

PostPosted: Thu Aug 02, 2012 4:49 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Thu Aug 02, 2012 4:55 pm    Post subject: Reply to: CEMT commands in JCL
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

Moderator


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

PostPosted: Thu Aug 02, 2012 5:00 pm    Post subject:
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: 7908
Location: Bellevue, IA

PostPosted: Thu Aug 02, 2012 5:17 pm    Post subject:
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

Moderator


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

PostPosted: Thu Aug 02, 2012 5:33 pm    Post subject:
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: 7908
Location: Bellevue, IA

PostPosted: Thu Aug 02, 2012 5:41 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts Invoking CA 7 commands through REXX kenshin CLIST & REXX 10 Fri Aug 12, 2016 9:33 pm
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm
No new posts Issuing IMS-Commands from a program w... SWP COBOL Programming 1 Fri Jun 03, 2016 4:31 pm
No new posts Cancelling $T A JES commands vasanthz JCL & VSAM 4 Tue Feb 16, 2016 10:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us