View previous topic :: View next topic
|
Author |
Message |
sudhakar_mainframe Warnings : 1 New User
Joined: 29 Jun 2006 Posts: 25
|
|
|
|
Hi All,
Recently i saw the VSAM file with max block size and zero length. Normally VSAM files can be open through File aid.
But i can able to browse the file thru option 3.4 in ISPF and try to check the properties. it shows the file with below properties
Organisation : PS
Record Format : F
Record length : 0
Block size : 27998
But when i try to open the file in browse mode , i am seeing record lenght 27919.
When i browse the properties of the file through File aid.it shows the file with below properties.
CI size : 22444
key length : 23
key location 90
Record format : V
Avg record length : 113
max record length : 113
Physical block size : 27998
My questions are below.
1. what kind of VSAM file that can we browse thru ISPF option 3.4 How to create Such files.
3. When i convert VSAM file to PS file, i am not getting full record length 27919(Reocrd length in Browse mode) , Getting 113 bytes only.
thanks,
Venkata |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
What does a full LISTCAT tell you? Or us? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
As far as I know, 3.4 will tell you vsam files are not supported . . . This is true thru z/OS 1.13.
Why do you believe this is a vsam file?
Could there be a problem with which lpar you are looking in - same file defined differently in multiple places? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
sudhakar_mainframe wrote: |
But i can able to browse the file thru option 3.4 in ISPF and try to check the properties. it shows the file with below properties |
Do you have DITTO installed at your site? If so, it might allow you to browse VSAM from ISPF 3.4 'by default'. But the attributes, you show for two different browse, does not sound correct. VSAM is VSAM - it can not be shown as Organisation : PS -- I'm not sure if installation of some 'tool' at your shop went awry or you're just missing something obvious...it's tough to guess anything with what you've posted. |
|
Back to top |
|
|
sudhakar_mainframe Warnings : 1 New User
Joined: 29 Jun 2006 Posts: 25
|
|
|
|
No DITTO is installed. Only that VSAM file is like that. Other VSAM files are opening thru FILE-AID
Thanks,
Venkata. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
Recently i saw the VSAM file with max block size and zero length. Normally VSAM files can be open through File aid.
But i can able to browse the file thru option 3.4 in ISPF and try to check the properties. it shows the file with below properties
Organisation : PS
Record Format : F
Record length : 0
Block size : 27998 |
An organization of PS in ISPF means you are not looking at a VSAM file -- you are looking at a sequential file. If you wish to think that it is a VSAM file, continue to do so -- but post a LISTCAT for the file as well (which you were asked for earlier but have not posted). Even a linear data set is listed by ISPF as organization VS, not PS. |
|
Back to top |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 580 Location: London
|
|
|
|
Have you ever heard of IAM? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
If the data set is IAM, then it is NOT VSAM -- and the original post and its title specifically stated VSAM. And if it is IAM, then the best source of information would be the vendor, not a forum. |
|
Back to top |
|
|
sudhakar_mainframe Warnings : 1 New User
Joined: 29 Jun 2006 Posts: 25
|
|
|
|
It looks like a IAM dataset. I verified in my Mainframe. Could you please give the sample jcl to create IAM KSDS dataset. Do we have any differences in the processing of VSAM Vs IAM files in COBOL pgms |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
There are samples in the IAM documentation. We do not have IAM installed, but i suspect someone else on your system has created/accessed an IAM KSDS . . .
Your COBOL code should work as though the file was still VSAM. |
|
Back to top |
|
|
sudhakar_mainframe Warnings : 1 New User
Joined: 29 Jun 2006 Posts: 25
|
|
|
|
Could you please share the Code samples for IAM datasets.
Thanks,
Venkata. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
No, i can't - as i mentioned, we do not use IAMS.
After 7 years in the field, one might be more self-sufficient.
As mentioned, your best sources of info are other people on your system and the product manuals.
Why do you refuse to use either? |
|
Back to top |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 580 Location: London
|
|
|
|
To create IAM files you normally just use standard IDCAMS DEFINE statements as you would for any VSAM dataset, but you include the OWNER(£IAM) keyword, or alternatively have £IAM or $IAM in one of the dataset name qualifiers.
However, there are options for what are termed IAM Overrides that are specified in an IAMOVERID DD, and you need to properly understand what these mean. Some may be set at a global level as a default in your installation so overrides may not be desired. You'll have to talk to whoever administers IAM in your workplace. In the LISTCAT you do of the file you can see what values have been set.
If you're licenced properly to use IAM you must have access to the relevent manual and should READ it. Do not just charge into using it without doing that, because some files are appropriate for IAM and others are not. Usually have performance CICS files are most suited to IAM, but not always.
e.g.
//DEF00001 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DEFINE CLUSTER -
(NAME(VSAM.CLUSTER) -
MODEL(VSAM.CLUSTER.MODEL) -
OWNER(£IAM) -
KEYS(20 0) -
RECORDSIZE(40 40) -
SHAREOPTIONS(2 2) -
CYLINDERS(500 500) -
CONTROLINTERVALSIZE(26624))
//IAMOVRID DD *
CREATE DD=&ALLDD,RELEASE=YES
CREATE DD=&ALLDD,BLKSIZE=2
CREATE DD=&ALLDD,DATA=YES
CREATE DD=&ALLDD,INDEX=YES
There are more option than this that you can find in the manual. |
|
Back to top |
|
|
sudhakar_mainframe Warnings : 1 New User
Joined: 29 Jun 2006 Posts: 25
|
|
|
|
Could you please explain the significance of IAMOVRID dd name.
Thanks,
Venkata Sudhakar. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Do you not have access to the product manuals to find out the information yourself ?
If your site has purchased the product you will have access. |
|
Back to top |
|
|
|