Sep 30, 2003 #1 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.
Just wondered if anyone had an example of a REXX script that converts space allocation for DSN between Tracks and bytes. Thanks in advance.
Sep 30, 2003 #2 Tzu Programmer Apr 10, 2003 16 NL 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. Upvote 0 Downvote
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.