Use the sp_configure, sp_helpconfig, and sp_monitorconfig system procedures to configure SAP ASE memory.
The full syntax and usage of sp_configure and details on each parameter are discussed in System Administration Guide, Volume 1 > Setting Configuration Parameters.