Which will take more memory?
Posted:
Wed Dec 26, 2007 8:13 pm
by nikhilgalgate
Hi
Please any one can tell me if I have to store a number and alphanumeric or alphabatic value which one will take less memory space. If we see in terms of example. if I have to store number
1 and alphabate
A which will take less memory?.
Re: Which will take more memory?
Posted:
Fri Jan 04, 2008 12:30 am
by arunprasad.k
nikhilgalgate,
As far as I know,
1. If you are storing it in a variable, then the storage depends on the the PICTURE cluase of the variable.
2. If you are storing it in a file, then it depends on the SPACE parameter specified in the JCL.
Arun.
Re: Which will take more memory?
Posted:
Mon Jan 07, 2008 2:48 pm
by sureshbabu
01 ws-data picx(n) value data
here ws-data is called literal
here if data is numeric you can store max of 18 digits
if data is alphabitic you can store 160 characters
i hope you done the problem
Re: Which will take more memory?
Posted:
Wed Jan 16, 2008 2:40 am
by dick scherrer
Hello,
if I have to store number 1 and alphabate A which will take less memory?.
Either could take as little as one byte. If you are looking for some other info, please clarify.