Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

MVC instruction to move 255 characters only

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
kalpana

New User


Joined: 19 Nov 2004
Posts: 24
Location: Banglore

PostPosted: Thu Jul 24, 2008 12:57 pm    Post subject: MVC instruction to move 255 characters only
Reply with quote

Using MVC instruction we can move 255 characters only. Why it is restricted like this.
Back to top
View user's profile Send private message

UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 755
Location: Germany

PostPosted: Thu Jul 24, 2008 1:04 pm    Post subject:
Reply with quote

Hi kalpana !

Plse search the forum for alittle article about the magic of 255Bytes.
Back to your Question. The length is internaly stored in one byte.
So what is the max. value you could store there ???

If you want to MVC more than that, use MVCL.
Back to top
View user's profile Send private message
Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 995
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Thu Jul 24, 2008 5:50 pm    Post subject:
Reply with quote

Quote:
The length is internaly stored in one byte.
So what is the max. value you could store there ???


Yes, but be aware that the length is relatrive to zero. You can get interesting results if the length byte is set to x'FF' !!

Regards,
Garry
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 755
Location: Germany

PostPosted: Thu Jul 24, 2008 7:18 pm    Post subject:
Reply with quote

@ Garry Carroll !

Thank's for adding this apect. Cause programming in Assembler whole day, i forgot. I allways start counting with zero.

Somtimes i characterize myself as binary zero.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Fri Jul 25, 2008 4:14 am    Post subject: Reply to: MVC instruction to move 255 characters only
Reply with quote

I am stealing this from somebody else that uses this phase in his signature and paraphrasing a bit:

The are 10 types of people in this world. Those that think binary and those who don't.


(The qualification I gave at the beginning of this post was provided,
since I know that there are others who will recognize the phrase
and be pissed because I stole it first!).
Back to top
View user's profile Send private message
Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 995
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Fri Jul 25, 2008 12:37 pm    Post subject:
Reply with quote

You're probably right to have the qualification lest plagiarism "byte" you.... Is
Quote:
paraphrasing a bit
possibly? I though they were either 'on' or 'off'. Was never very good at fuzzy logic.....

Garry.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Remove junk values in a file and rite... KP1125 DFSORT/ICETOOL 2 Wed Jan 25, 2017 9:58 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 8 Wed Jan 25, 2017 8:24 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:23 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:21 pm
This topic is locked: you cannot edit posts or make replies. How to move a long alphanumeric data ... lind sh COBOL Programming 8 Mon Dec 05, 2016 7:51 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us