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:
parent
7d2a78af9d
commit
74c4f63551
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user