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 

Move verb

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


Joined: 15 May 2005
Posts: 72
Topics: 24

PostPosted: Fri Jun 17, 2005 6:25 am    Post subject: Move verb Reply with quote

Hi,

This is my program.

WORKING-STORAGE SECTION.
01 Y PIC X(2).
01 Z PIC 9(4).
PROCEDURE DIVISION.

MOVE Y TO Z

DISPLAY 'Y = 'Y.
DISPLAY 'Z = 'Z.

O/P is :

Y =
Z = 00 0

My question is what happened to the 3rd byte in Z????????
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Jun 17, 2005 8:05 am    Post subject: Reply with quote

maverick05,

Add the following line to your pgm as the first line (before ID division) and compile the pgm and run the pgm and now see the results.

Code:

CBL NUMPROC(PFD)


Check this link which explains about the compiler option NUMPROC

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3PG10/2.4.34?SHELF=IGY3SH10&DT=20020923143836

Btw, Please search before posting. check this link for a similar topic

http://www.mvsforums.com/helpboards/viewtopic.php?t=2099&highlight=numproc

Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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