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 

How To OPEN and CLOSE A VSAM FILE USING JCL ?

 
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
PrakashT
Beginner


Joined: 07 Jun 2003
Posts: 1
Topics: 1

PostPosted: Fri Jun 13, 2003 2:25 am    Post subject: How To OPEN and CLOSE A VSAM FILE USING JCL ? Reply with quote

Can we OPEN and CLOSE A VSAM FILE USING JCL ? If YES ,then HOW?
Back to top
View user's profile Send private message
coolman
Intermediate


Joined: 03 Jan 2003
Posts: 283
Topics: 27
Location: US

PostPosted: Fri Jun 13, 2003 3:49 am    Post subject: Reply with quote

PrakashT,
Can you please elaborate on your requirement ?
Answering your question, explicit "OPEN" and "CLOSE", Iam afraid is possible only through a program.

Cheers,
Coolman
________
Jaguar XK140 history


Last edited by coolman on Sat Feb 05, 2011 1:24 am; edited 1 time in total
Back to top
View user's profile Send private message
coolman
Intermediate


Joined: 03 Jan 2003
Posts: 283
Topics: 27
Location: US

PostPosted: Fri Jun 13, 2003 4:12 am    Post subject: Reply with quote

PrakashT,
Can you please elaborate on your requirement ?
Answering your question, explicit "OPEN" and "CLOSE", Iam afraid is possible only through a program.

Cheers,
Coolman
________
Fuji Rabbit


Last edited by coolman on Sat Feb 05, 2011 1:24 am; edited 1 time in total
Back to top
View user's profile Send private message
taterhead
Beginner


Joined: 02 Dec 2002
Posts: 7
Topics: 0

PostPosted: Fri Jun 13, 2003 8:28 am    Post subject: Reply with quote

coolman wrote:
PrakashT,
Can you please elaborate on your requirement ?
Answering your question, explicit "OPEN" and "CLOSE", Iam afraid is possible only through a program.

Cheers,
Coolman
And that program would be IDCAMS. Check out VERIFY.
Back to top
View user's profile Send private message
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Sun Jun 15, 2003 3:41 pm    Post subject: Reply with quote

PrakashT,

Just curious, what do you hope to accomplish once you discover how to do this?

Regards, Jack.
Back to top
View user's profile Send private message
coolman
Intermediate


Joined: 03 Jan 2003
Posts: 283
Topics: 27
Location: US

PostPosted: Mon Jun 16, 2003 4:11 am    Post subject: Reply with quote

Taterhead,
What I meant was what are you going to achieve by just opening and closing a file, unless you do some processing with it. Also, Can you please provide me some manuals on VERIFY operator of IDCAMS program

Cheers,
Coolman.
________
Ford Mondeo V6 engine


Last edited by coolman on Sat Feb 05, 2011 1:25 am; edited 1 time in total
Back to top
View user's profile Send private message
Rama_Prayaga
Beginner


Joined: 20 May 2003
Posts: 45
Topics: 15

PostPosted: Mon Jun 16, 2003 4:59 am    Post subject: Reply with quote

hi,

Can you tell be whether the VSAM file you are using is used in ONLINE?
Back to top
View user's profile Send private message Yahoo Messenger
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Mon Jun 16, 2003 5:58 pm    Post subject: Reply with quote

Hi Coolman,

When files have not been successfully OPENed/CLOSed they cannot be OPENed successfully for READs and non-sequential output.

VSAM files have a similar problem. The solution for them is to create a "dummy" record before it's used, especially in a CICS environment where the 1st use is usually a random record add. The 1st add will fail without the dummy rec.

I've often wondered (but never had the chance to test it) if a simple OPEN/CLOSE for VSAM files would serve the same purpose as the "dummy" rec. I've read that VSAM modifies a cntl field somewhere when a record is written and that OPEN checks the field. That may be why the "dummy" rec is required and an initial VSAM OPEN/CLOSE won't turn the trick.

This may be what PrakashT has in mind. I hope he answers.

Regards, Jack.
Back to top
View user's profile Send private message
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Tue Jun 17, 2003 1:09 am    Post subject: Reply with quote

Hi

I'm using EXCI to "play" with VSAM files from batch.
In other words, I'm running "EXEC CICS SET FILE..." from batch.
________
volcano vaporizer


Last edited by ofer71 on Sat Feb 05, 2011 10:56 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Tue Jun 17, 2003 5:14 pm    Post subject: Reply with quote

ofer71,

Aaand?........
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