Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

REXX SCRIPT

Status
Not open for further replies.

tidyboy

Programmer
Sep 30, 2003
1
GB
Just wondered if anyone had an example of a REXX script that converts space allocation for DSN between Tracks and bytes.
Thanks in advance.
 
Hello tidyboy,

First you should know the kind of dasd you are working with.

For example if you are working with 3390 mode, your track will be 56664 bytes.

Second you should know the LRECL length.

If the length of your LRECL is 27998 bytes then you will be able to put two of them on one track.

If your record length is 2082 bytes then you will be able to put 21 of them on one record, but you will use only 43722 bytes on this track.

The rest is a simple calculation.

Regards,

Tzu.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top