Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

VSAM file shows zero record length with block size 27998

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: VSAM file shows zero record length with block size 27998
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Sat Sep 28, 2013 11:25 pm    Post subject: Reply to: VSAM file shows zero record length with block size
Reply with quote

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

Site Director


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

PostPosted: Sun Sep 29, 2013 8:21 am    Post subject:
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

Senior Member


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

PostPosted: Sun Sep 29, 2013 8:19 pm    Post subject: Re: VSAM file shows zero record length with block size 27998
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    Post subject:
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: 7904
Location: Bellevue, IA

PostPosted: Mon Sep 30, 2013 11:07 pm    Post subject:
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 User


Joined: 31 Dec 2009
Posts: 437
Location: London

PostPosted: Tue Oct 01, 2013 4:43 pm    Post subject:
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: 7904
Location: Bellevue, IA

PostPosted: Tue Oct 01, 2013 5:34 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Thu Oct 03, 2013 11:58 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Fri Oct 04, 2013 2:10 am    Post subject:
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 User


Joined: 31 Dec 2009
Posts: 437
Location: London

PostPosted: Fri Oct 04, 2013 1:08 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Oct 04, 2013 6:12 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us