| View previous topic :: View next topic |
| Author |
Message |
Martin Beginner

Joined: 20 Mar 2006 Posts: 133 Topics: 58
|
Posted: Wed Nov 15, 2006 10:47 pm Post subject: opening and closing of VSAm FILE |
|
|
Hi ,
Is it possible to open a VSAM file for output and close it using JCL only ? |
|
| Back to top |
|
 |
shekar123 Advanced
Joined: 22 Jul 2005 Posts: 528 Topics: 90 Location: Bangalore India
|
Posted: Thu Nov 16, 2006 3:13 am Post subject: |
|
|
Martin,
What do you mean by opening a VSAM File for Output and closing it ? Do you want to copy records to a VSAM File and complete the operation , if yes i had posted a JCL earlier . _________________ Shekar
Grow Technically |
|
| Back to top |
|
 |
Martin Beginner

Joined: 20 Mar 2006 Posts: 133 Topics: 58
|
Posted: Thu Nov 16, 2006 1:07 pm Post subject: |
|
|
shekar123,
No I just want to initialize the VSAM file. |
|
| Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12398 Topics: 75 Location: San Jose
|
|
| Back to top |
|
 |
Martin Beginner

Joined: 20 Mar 2006 Posts: 133 Topics: 58
|
Posted: Thu Nov 16, 2006 11:30 pm Post subject: |
|
|
kolusu,
Your reply rakshith doesn't inistialize the vsam file.
Please help !
- Mt |
|
| Back to top |
|
 |
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Fri Nov 17, 2006 6:04 am Post subject: |
|
|
Martin,
How about just a TSO VERFIY ? _________________ ALL opinions are welcome.
Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes. |
|
| Back to top |
|
 |
Martin Beginner

Joined: 20 Mar 2006 Posts: 133 Topics: 58
|
Posted: Fri Nov 17, 2006 12:38 pm Post subject: |
|
|
Cogito-Ergo-Sum,
The deal here is to do it through a JCL. I know there is an option in INSYNC which can intialize the vsam file. |
|
| Back to top |
|
 |
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Sat Nov 18, 2006 11:56 pm Post subject: |
|
|
Martin,
You can invoke the TSO command through batch. Such as,
| Code: |
//STEP1 EXEC PGM=IKJEFT01
//SYSTSIN DD *
VERIFY 'a.dataset.name'
/*
//SYSTSPRT DD SYSOUT=*
|
_________________ ALL opinions are welcome.
Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes. |
|
| Back to top |
|
 |
|
|
|