MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Maximum LRECL for a PS

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
Siva Kumar Sunku
Beginner


Joined: 17 Aug 2004
Posts: 25
Topics: 14

PostPosted: Wed Aug 25, 2004 1:15 am    Post subject: Maximum LRECL for a PS Reply with quote

Hi,
I want to define a PS dataset with LRECL 55000.
But am getting message when I do JSCAN, LRECL can be maximum of 32760.
Is this the limit that MVS allows or Do I need to increase Block Size of my dataset allcoations.

Plz Help me guyz.

Thanks
Siva.
Back to top
View user's profile Send private message AIM Address
Meg
Beginner


Joined: 08 Jul 2003
Posts: 44
Topics: 16

PostPosted: Wed Aug 25, 2004 1:51 am    Post subject: Reply with quote

Hi Siva,
According to the MVS JCL Reference guide,
"BLKSIZE specifies the maximum length, in bytes, of a block. The number of bytes that you specify for BLKSIZE depends on the device type and the record format for the data set. The maximum is 32,760 for DASD data sets and 2,147,483,648 for tape, except for data sets on magnetic tape with ISO/ANSI Version 3 labels, where the minimum value for BLKSIZE is 18 bytes and the maximum is 2048 bytes. To allow a block size greater than 2048, use installation exit routine IFG0193G, described in z/OS DFSMS Installation Exits."
Hence I guess, the maximum length that can specified should not exceed 32760 in your case.
Thanks,
Meg
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Wed Aug 25, 2004 6:02 am    Post subject: Reply with quote

sivakumar,
Quote:

I want to define a PS dataset with LRECL 55000.


What kind of language on the mainframe supports such LRECL? Cobol does not support it. I am doubtful if C supports it.

As meg mentioned earlier the max lrecl you can have is

1 to 32,760 for non-VSAM data sets.

1 to 32,761 for VSAM key-sequenced (KS), entry-sequenced (ES), or relative record (RR) data sets. (LRECL does not apply to VSAM linear space, RECORG=LS, data sets.)

For VSAM key-sequenced (KS) data sets, a record length must be specified, either explicitly with the LRECL or LIKE parameter, or in the data class for the data set. The record length must be greater than the key length.

Note: When RECFM is F or U, the length must not exceed DCB BLKSIZE. For RECFM=D or V, the length must not exceed BLKSIZE minus 4. For RECFM=VS, the length can exceed BLKSIZE. For unblocked records when DCB RKP=0, the length is for only the data portion of the record. LRECL=0 is valid only for RECFM=U.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Siva Kumar Sunku
Beginner


Joined: 17 Aug 2004
Posts: 25
Topics: 14

PostPosted: Wed Aug 25, 2004 11:41 pm    Post subject: Reply with quote

Meg & Kolusu,

Thanks for your immediate answers.
We are changing our design docs accordingly.

Siva.
Back to top
View user's profile Send private message AIM Address
blitz
Beginner


Joined: 24 Dec 2002
Posts: 28
Topics: 4

PostPosted: Thu Aug 26, 2004 9:04 am    Post subject: Reply with quote

Shocked
Back to top
View user's profile Send private message
MikeBaker
Beginner


Joined: 04 May 2004
Posts: 96
Topics: 9

PostPosted: Thu Aug 26, 2004 4:24 pm    Post subject: Reply with quote

Siva,

It is rare to ever see a BLKSIZE actually even mentioned in a design spec. To most people, this is just trivia. Not even worth mentioning, unless you happen to be cleaning up someone else's mess - because (say for example) they might have hard-coded (bad) block sizes everywhere.

You shop almost certainly uses DFHSM (or equivalent). And with DFHSM, it is very-Bad practise to hard-code blocksizes. Furthermore you really should speak to someone in YOUR shop about this stuff to supplement what you have learned here. How about the Storage Management people for example?

And what Meg and Kolusu said is only true if you are using 3390 DASD types. Are you? How do you know that you are not using 3380 DASD types? The optimal blksize for a 3380 is completely different. Many shops still have 3380s.

Optimal blksize = half a track. Which means... to get all data off that track takes 2 physical I/Os. If you do not have optimal blksize, then to get all the data off one track takes a minimum of 3+ I/Os. All of a sudden, you need 50+% extra I/O. And I/O is very CPU intensive = a real good way to waste $$ and space.
Back to top
View user's profile Send private message
MikeBaker
Beginner


Joined: 04 May 2004
Posts: 96
Topics: 9

PostPosted: Thu Aug 26, 2004 4:43 pm    Post subject: Whoops-e-daisy - My Mistake! Biggest IT error in 100 years! Reply with quote

Siva,

You'll have to dis-regard my last two posts!! Sad Evil or Very Mad Crying or Very sad Embarassed

I got LRECL and BLKSIZE mixed up. Embarassed Embarassed

That's because I have just arrived in new shop, and have been asked to come up with plans to save CPU and DASD, and one of the first things I looked at was the JCL, and found all hard-coded Blocksizes, and alot of it complete c***.

How about VB, LRECL=2125, BLKSIZE=7000?? And that's just an entree.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group