IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

VSAM file shows zero record length with block size 27998


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sudhakar_mainframe
Warnings : 1

New User


Joined: 29 Jun 2006
Posts: 25

PostPosted: Sat Sep 28, 2013 9:03 am
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Sat Sep 28, 2013 11:25 pm
Reply with quote

What does a full LISTCAT tell you? Or us?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Sep 29, 2013 8:21 am
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Sun Sep 29, 2013 8:19 pm
Reply with quote

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
View user's profile Send private message
sudhakar_mainframe
Warnings : 1

New User


Joined: 29 Jun 2006
Posts: 25

PostPosted: Mon Sep 30, 2013 10:32 pm
Reply with quote

No DITTO is installed. Only that VSAM file is like that. Other VSAM files are opening thru FILE-AID
Thanks,
Venkata.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Sep 30, 2013 11:07 pm
Reply with quote

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
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 580
Location: London

PostPosted: Tue Oct 01, 2013 4:43 pm
Reply with quote

Have you ever heard of IAM?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Oct 01, 2013 5:34 pm
Reply with quote

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
View user's profile Send private message
sudhakar_mainframe
Warnings : 1

New User


Joined: 29 Jun 2006
Posts: 25

PostPosted: Thu Oct 03, 2013 8:16 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Oct 03, 2013 11:58 pm
Reply with quote

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
View user's profile Send private message
sudhakar_mainframe
Warnings : 1

New User


Joined: 29 Jun 2006
Posts: 25

PostPosted: Fri Oct 04, 2013 1:28 am
Reply with quote

Could you please share the Code samples for IAM datasets.

Thanks,
Venkata.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Oct 04, 2013 2:10 am
Reply with quote

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
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 580
Location: London

PostPosted: Fri Oct 04, 2013 1:08 pm
Reply with quote

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
View user's profile Send private message
sudhakar_mainframe
Warnings : 1

New User


Joined: 29 Jun 2006
Posts: 25

PostPosted: Fri Oct 04, 2013 6:04 pm
Reply with quote

Could you please explain the significance of IAMOVRID dd name.

Thanks,
Venkata Sudhakar.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Oct 04, 2013 6:12 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top