1
0
mirror of https://github.com/moshix/mvs.git synced 2026-01-17 08:32:54 +00:00

enhanced blocksize calculator somewhat

This commit is contained in:
Moshix 2017-05-26 20:38:32 -05:00
parent 7d2a78af9d
commit 74c4f63551
2 changed files with 3 additions and 3 deletions

BIN
blockgo Executable file

Binary file not shown.

View File

@ -71,9 +71,9 @@ func main() {
/* formula: BLOCKIZE = INT(half of TRKSZIE/LRECL) * LRECL
// calculate optimum block size */
fulltracks := table[dasd] //obtain pair value of key dasd
halftracks := fulltracks / 2 // half track size
/* fulltracks := table[dasd] */ //obtain pair value of key dasd
halftracks := table[dasd] / 2 // half track size
blocksize := int((halftracks / lrecl) * lrecl)
fmt.Println("BLK100I Ideal blocksize for dasd ", dasd, " and lrecl: ", lrecl, " is: ", blocksize)
fmt.Println("BLK100I Ideal blocksize for DASD type", dasd, ", LRECL: ", lrecl, " is: ", blocksize)
return
}