MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MVC

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
danm
Intermediate


Joined: 29 Jun 2004
Posts: 170
Topics: 73

PostPosted: Fri Jan 26, 2007 2:55 pm    Post subject: MVC Reply with quote

Code:

MVC STR1,STR2

DS  STR1  CL10
..
..
DS  STR2  CL4
DS  STR3  CL8
..


Suppose Str1 = '0123456789', Str2 = 'abcd', Str3 = 'efghijkl'. After the move, Str1 = 'abcdefghij'. How can I make Str1 = 'abcd______' (str2 padded with 6 blanks)?
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Fri Jan 26, 2007 4:43 pm    Post subject: Reply with quote

fill STR1 with blanks before the move
Code:

 MVI STR1,C' '
 MVC STR1+1(L'STR1-1),STR1

(That syntax may be off, but that is the idea... I haven't done much assembler lately)
Back to top
View user's profile Send private message Visit poster's website
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Fri Jan 26, 2007 5:56 pm    Post subject: Reply with quote

... and then MVC STR1(4),STR2

In other words, you need to specify the length if it's not 10.

By the way, you've got DS and STR1, STR2, STR3 the wrong way round.
_________________
The day you stop learning the dinosaur becomes extinct
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group