Bytes to Megabytes



High Level Assembler(HLASM) for MVS & VM & VSE

Bytes to Megabytes

Postby utpalpal07 » Thu Jun 14, 2012 5:18 pm

Hi,

I am new to assemblers. I have a to enlarge the size of variable.
Is there any sizeof operator which gives the size of variables?
And how to display the value of any register in spool?

Please Help

regards
utpal
utpalpal07
 
Posts: 43
Joined: Wed Feb 08, 2012 12:02 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Bytes to Megabytes

 

Re: Bytes to Megabytes

Postby dick scherrer » Thu Jun 14, 2012 8:16 pm

Hello,

Suggest you locate the variable in question in the source and modify it according to the new length.

Possibly there is more that you have not posted . . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Bytes to Megabytes

Postby Robert Sample » Thu Jun 14, 2012 8:21 pm

There is an L' length operator, but it's not exactly a sizeof function. Perhaps if you more fully explain what you want, you'll get better answers.

And the fastest, easiest way to print register values most likely is the SNAP dump macro instruction. Check the Assembler Services Guide manual in the MVS bookshelf (http://www.ibm.com and navigate to the z/OS libary) for details on what's required to use it.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times

Re: Bytes to Megabytes

Postby dick scherrer » Thu Jun 14, 2012 8:25 pm

Hello,

I just noticed the subject for this topic. . .

How does the subject relate to the question posted?

And i missed the second question. . . :oops:
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Bytes to Megabytes

Postby utpalpal07 » Fri Jun 15, 2012 11:10 am

Hi all,

Actually I need to change the size of some datasets from bytes to megabytes.
But I first wanna to display the size of datasets to know the actual size of datasets.

So i am looking if there is any instructions that can show the value of registers to spool.

I have used:

WTO TEXT=(R8),MF=(E,WWTO)

and

WWTO WTO TEXT=,MF=L List form


Regards,
Utpal
utpalpal07
 
Posts: 43
Joined: Wed Feb 08, 2012 12:02 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Bytes to Megabytes

Postby NicC » Fri Jun 15, 2012 12:02 pm

size of dataset or variable?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: Bytes to Megabytes

Postby utpalpal07 » Fri Jun 15, 2012 2:48 pm

@Nic: its datasets

Regards
Utpal
utpalpal07
 
Posts: 43
Joined: Wed Feb 08, 2012 12:02 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Bytes to Megabytes

Postby Robert Sample » Fri Jun 15, 2012 5:01 pm

What does this mean?
Actually I need to change the size of some datasets from bytes to megabytes.
Are you planning on deleting and redefining the data sets? If so, why are you posting in the Assembler section since that would be a JCL issue? If not, I think you need to clarify exactly what it is your are wanting to do because so far you're making absolutely no sense, and you've asked about several extremely different things.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times

Re: Bytes to Megabytes

Postby NicC » Fri Jun 15, 2012 10:07 pm

Sorry but it is Nic not @Nic. This is not bird-song or where-ever this @ thing started.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: Bytes to Megabytes

Postby dick scherrer » Fri Jun 15, 2012 11:33 pm

Hello,

Actually I need to change the size of some datasets from bytes to megabytes.
Suggest you post the current allocation of a couple of these files.

As Robert mentioned, what you want is not clear and you need to clarify.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to Assembler