View previous topic :: View next topic |
Author |
Message |
PrakashT Beginner
Joined: 07 Jun 2003 Posts: 1 Topics: 1
|
Posted: Fri Jun 13, 2003 2:25 am Post subject: How To OPEN and CLOSE A VSAM FILE USING JCL ? |
|
|
Can we OPEN and CLOSE A VSAM FILE USING JCL ? If YES ,then HOW? |
|
Back to top |
|
|
coolman Intermediate
Joined: 03 Jan 2003 Posts: 283 Topics: 27 Location: US
|
Posted: Fri Jun 13, 2003 3:49 am Post subject: |
|
|
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 |
|
|
coolman Intermediate
Joined: 03 Jan 2003 Posts: 283 Topics: 27 Location: US
|
Posted: Fri Jun 13, 2003 4:12 am Post subject: |
|
|
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 |
|
|
taterhead Beginner
Joined: 02 Dec 2002 Posts: 7 Topics: 0
|
Posted: Fri Jun 13, 2003 8:28 am Post subject: |
|
|
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 |
|
|
slade Intermediate
Joined: 07 Feb 2003 Posts: 266 Topics: 1 Location: Edison, NJ USA
|
Posted: Sun Jun 15, 2003 3:41 pm Post subject: |
|
|
PrakashT,
Just curious, what do you hope to accomplish once you discover how to do this?
Regards, Jack. |
|
Back to top |
|
|
coolman Intermediate
Joined: 03 Jan 2003 Posts: 283 Topics: 27 Location: US
|
Posted: Mon Jun 16, 2003 4:11 am Post subject: |
|
|
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 |
|
|
Rama_Prayaga Beginner
Joined: 20 May 2003 Posts: 45 Topics: 15
|
Posted: Mon Jun 16, 2003 4:59 am Post subject: |
|
|
hi,
Can you tell be whether the VSAM file you are using is used in ONLINE? |
|
Back to top |
|
|
slade Intermediate
Joined: 07 Feb 2003 Posts: 266 Topics: 1 Location: Edison, NJ USA
|
Posted: Mon Jun 16, 2003 5:58 pm Post subject: |
|
|
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 |
|
|
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Tue Jun 17, 2003 1:09 am Post subject: |
|
|
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 |
|
|
slade Intermediate
Joined: 07 Feb 2003 Posts: 266 Topics: 1 Location: Edison, NJ USA
|
Posted: Tue Jun 17, 2003 5:14 pm Post subject: |
|
|
ofer71,
Aaand?........ |
|
Back to top |
|
|
|
|