View previous topic :: View next topic
|
Author |
Message |
sonasheetal
New User
Joined: 08 Jun 2005 Posts: 27
|
|
|
|
Hi All,
1)Can we code the following parameter in VSAM while declaring the any new VSAM dataset in the JCL?
DISP= (New, Catlg, Delete), DCB parameter, SPACE and other paremeters which are used for flat files(PS).
i.e //DD1 DD DSN=A.B.C,DISP=(NEW,CATLG,DELETE),SPACE=(TRK(1,10),DCB=(LRECL=80,BLKSIZE=0) AND ANY OTHER PARAEMETR
A.B.C IS VSAM DATASET.
As per my knowledgement concerned except Disposition "delete" we can use other combination of Disp and other DCB,Space,etc can't be coded.
Please clarify me as I am little confused with these parameters for PS and VSAM files.
2) Can we use DISP=SHR while writing into the PS files or we can only give DISP=OLD(Mutually exclusive) when writing records into files?
If we give DISP=SHR when writing the files it can be used by others to write. So it doesn't make any sense.
Regards,
Sona. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Sheetal,
Quote: |
Can we code the following parameter in VSAM while declaring the any new VSAM dataset in the JCL |
No. VSAM can be created through IDCAMS or some other utilities. At run time (like PS) we cant create.
Quote: |
Can we use DISP=SHR while writing into the PS files or we can only give DISP=OLD(Mutually exclusive) when writing records into files? |
Why dont you try and let us know? |
|
Back to top |
|
|
sonasheetal
New User
Joined: 08 Jun 2005 Posts: 27
|
|
|
|
Hi Murali,
Thanks for your quick reply.,
If any VSAM dataset is existing can we code Disp=(old,catlg,delete)
becoz we can delete the VSAM only by IDCAMS with DELETE option not the above one. If that is the case Disp=(old,catlg,delete) can be coded?
Regards,
Sona |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Sheetal,
Quote: |
If any VSAM dataset is existing can we code Disp=(old,catlg,delete) |
On job abend, you can say BYE BYE to VSAM cluster. |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
Murali,
I am really amazed that a senior member like you gives answers like this.
With all respect, I will suggest you to verify your answer. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Abhijit,
Quote: |
I am really amazed that a senior member like you gives answers like this.
With all respect, I will suggest you to verify your answer. |
Actually I had implemented DISP=(OLD,DELETE,DELETE) for VSAM twuce after Sheetal's query.
These are two jobs with their output. To my wonder, both the times VSAM (ESDS) got deleted.
First job:
Code: |
//SORTSTEP EXEC PGM=IEFBR14
//ESDSVSAM DD DSN=ISTEST.MOHAN.ESDS.TEST,DISP=(OLD,DELETE,DELETE) |
JESYSMSG:
Code: |
IEF236I ALLOC. FOR SORTJCL SORTSTEP
IGD103I SMS ALLOCATED TO DDNAME ESDSVSAM
IEF142I SORTJCL SORTSTEP - STEP WAS EXECUTED - COND CODE 0000
IGD105I ISTEST.MOHAN.ESDS.TEST DELETED, DDNAME=ESDSVSAM
******************** >>CDE<< ***************************************************
*
* STEPNAME PGM NAME COMP STEP START STEP END TCB TIME SRB TIME ELAPSED S
* CODE HH.MM.SS HH.MM.SS MMM.SS.T MMM.SS.T HH.MM.SS
* SORTSTEP IEFBR14 00 07.38.42 07.38.42 000.00.0 000.00.0 00.00.00
*
* DDNAME EXCPS DDNAME EXCPS DDNAME EXCPS DDNAME EXCPS
* ESDSVSAM 0
*
********************************************************************************
IEF373I STEP/SORTSTEP/START 2007274.0738
IEF374I STEP/SORTSTEP/STOP 2007274.0738 CPU 0MIN 00.00SEC SRB 0MIN 00.00S
*********** >>CDE<< ************************************************************
*
* JOB NAME COMP RDR START INIT START JOB START JOB END ELAPSED TCB
* CODE HH.MM.SS HH.MM.SS HH.MM.SS HH.MM.SS HH.MM.SS MMM
*
* SORTJCL 00 07.38.42 07.38.42 07.38.42 07.38.42 00.00.00 000
*
********************************************************************************
IEF375I JOB/SORTJCL /START 2007274.0738
IEF376I JOB/SORTJCL /STOP 2007274.0738 CPU 0MIN 00.00SEC SRB 0MIN 00.00S |
Second job:
Before running the second job, to make sure I had created VSAM.... I went through 3.4 option.
Code: |
//SOMESTEP EXEC PGM=IEFBR14
//ESDSVSAM DD DSN=ISTEST.MURALI.ESDS.TEST,
// DISP=(OLD,DELETE,DELETE) |
Code: |
IEF236I ALLOC. FOR SORTJCL SOMESTEP
IGD103I SMS ALLOCATED TO DDNAME ESDSVSAM
IEF142I SORTJCL SOMESTEP - STEP WAS EXECUTED - COND CODE 0000
IGD105I ISTEST.MURALI.ESDS.TEST DELETED, DDNAME=ESDSVSAM |
|
|
Back to top |
|
|
Amit Yadav
New User
Joined: 20 Sep 2007 Posts: 9 Location: PUNE
|
|
|
|
can we UNCATALOG to VSAM file? |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Amit Yadav wrote: |
can we UNCATALOG to VSAM file? |
Yes, but why would you want to ? |
|
Back to top |
|
|
Amit Yadav
New User
Joined: 20 Sep 2007 Posts: 9 Location: PUNE
|
|
|
|
ya thax CICS Guy ... but please tell me how many attributes of DISP i.e NEW, CATALOG , UNCATALOG , KEEP,OLD.....we can use in VSAM.? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
VSAM definition can be done thru JCL,
but... before doing it I would ask Your storage support group,
there are many good reasons not to do it and many organizations
do not accept it as a standard
One of the biggest problems of these forums is that most ( almost all )
of the answers are right from a technical point of view but are
almost always wrong because they fail to advise abut:
CHECKING WITH YOUR COMPANY STANDARDS |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
Amit Yadav wrote: |
ya thax CICS Guy ... but please tell me how many attributes of DISP i.e NEW, CATALOG , UNCATALOG , KEEP,OLD.....we can use in VSAM.? |
I don't know, you don't know....
I don't care that I don't know, you do care that you don't know...
Who should be looking at the manual links given above.... |
|
Back to top |
|
|
|