MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Open/Close Online CICS VSAM File

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
juan00982
Beginner


Joined: 29 Jun 2004
Posts: 36
Topics: 13
Location: PR

PostPosted: Thu Aug 26, 2004 10:50 am    Post subject: Open/Close Online CICS VSAM File Reply with quote

Hi,

I need help on a JCL. I need to update a VSAM file through JCL, but before updating I need to release it from CICS so that I can work with it and then after I'm done with the file, release it so that CICS can work with it.

Can some one provide an example ?

Thanks in advance for all the help you can provide.

Juan

Question
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Aug 26, 2004 11:29 am    Post subject: Reply with quote

juan00982 ,

Please search before posting. This topic has been discussed earlier. check this link


http://www.mvsforums.com/helpboards/viewtopic.php?t=307&highlight=close

Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
juan00982
Beginner


Joined: 29 Jun 2004
Posts: 36
Topics: 13
Location: PR

PostPosted: Fri Aug 27, 2004 10:56 am    Post subject: Reply with quote

Kolusu,

Do you by any chance have the complete definition of IEFBR14
program ?. I tried the solution on the link that you gave me but what it did was it send a message to the console asking for a reply. Is there a parm that would turn it off Question

thanks for your help
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Aug 27, 2004 11:35 am    Post subject: Reply with quote

Juan,

Specify N in column 72 ,so that JES2 will not write the command on the operator console.

IEFBR14 is a dummy program. It is a DO-NOTHING program.

Code:

IEFBR14 is an IBM utility module which performs two simple functions: 
                                                                       
     -it loads register 15 with a value of 0                           
     -it then does a branch to the address in register 14             
                                                                       
Since register 14 is the standard IBM program linkage "return         
address" register, this immediately returns control to the calling     
program.  And since register 15 is the standard IBM program linkage   
"return code" register, the return code passed back to the calling     
program is always 0.                                                   
                                                                       
If the calling program is an application program which calls IEFBR14   
according to standard IBM program linkage conventions, then IEFBR14   
acts as a subroutine which immediately returns to the calling program 
and always passes back a return code of 0.  In other words, it         
functions as a subroutine "stub" which can be useful in some testing   
situations.                                                           
                                                                       
If IEFBR14 is executed as a standalone batch program; i.e.,           
                                                                       
     //JS10   EXEC PGM=IEFBR14                                         
                                                                       
then it provides a convenient way to insert a job step into a given   
job which is guaranteed to set a return code of zero.  This job step   
can also be used to catalog or delete specified data sets from         
within a batch job.  For example, to delete existing, cataloged       
data set 'MY.DATA.SET', the following job step could be used:         
                                                                       
     //JS20   EXEC PGM=IEFBR14                                         
     //DD1    DD   DSN=MY.DATA.SET,DISP=(OLD,DELETE)                   


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
juan00982
Beginner


Joined: 29 Jun 2004
Posts: 36
Topics: 13
Location: PR

PostPosted: Fri Aug 27, 2004 12:01 pm    Post subject: Reply with quote

Kolusu

this is the jcl.

//IEFBR14 EXEC PGM=IEFBR14
// F CICSPRD2,'CEMT SET FIL(ITCDBP00) CLO DIS'

should it be

// F CICSPRD2,'CEMT SET FIL(ITCDBP00) CLO DIS N'

or

// F CICSPRD2,'CEMT SET FIL(ITCDBP00) CLO DIS' N

which one ???
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Aug 27, 2004 12:15 pm    Post subject: Reply with quote

Juan,

The last one is the right syntax, but just make sure that N is coded in the 72nd byte
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
juan00982
Beginner


Joined: 29 Jun 2004
Posts: 36
Topics: 13
Location: PR

PostPosted: Fri Aug 27, 2004 12:58 pm    Post subject: Reply with quote

kolusu,

It's giving me an error.

F CICSPRD2,'CEMT SET FIL(ITCDBP00) CLO DIS' N

I've placed the N on the 72nd column and the jcl is abending with msg ( 3 IEFC605I UNIDENTIFIED OPERATION FIELD ).

can you tell me why it's giving me this error ?
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Aug 27, 2004 1:18 pm    Post subject: Reply with quote

Juan,

Code:

IEFC605I UNIDENTIFIED OPERATION FIELD                                   
                                                                         
Explanation:  In a JCL statement, the system either could not find an   
operation field or could not identify the operation field as a valid JCL
verb or a valid operator command. The system also issues this message if
the flagged statement is a continuation of a statement containing syntax
errors.                                                                 
                                                                         
System Action:  The system ends the job. The system scans the remaining 
JCL statements for syntax errors.                                       
                                                                         
Application Programmer Response:  Check that the operation field is     
spelled correctly and that it is preceded and followed by at least one   
blank. After correcting the error, submit the job again.                 
                                                                         
System Programmer Response:  Look at the messages in the job log. If the
JOB statement did not specify MSGLEVEL=(1,1), specify it and run the job
again. If the problem persists, search problem reporting data bases for a
fix for the problem. If no fix exists, contact the IBM Support Center.   
Provide the SYSOUT output for the job.                                   
                                                                         
Source: Converter                                                       
                                                                         
Detecting Module:  IEFCNGST                                             
                                                                         


Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Mike Chantrey
Intermediate


Joined: 10 Sep 2003
Posts: 234
Topics: 1
Location: Wansford

PostPosted: Wed Sep 01, 2004 8:29 am    Post subject: Reply with quote

You are really much better off using the EXCI method to close/open CICS files (mentioned in kolusu's link above). Although it needs a bit more work than the method you are trying, it can give you proper feedback - i.e. did the file close sucessfully, and if not why not.
There is free sample code available for this - somewhere in the free archives of CICS Update magazine at www.xephon.com if I remember correctly.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group