Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
move cooresponding

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
sreenivasreddyg

New User


Joined: 23 Apr 2005
Posts: 21
Location: delhi

PostPosted: Wed May 04, 2005 6:14 pm    Post subject: move cooresponding
Reply with quote

hi,

i think this question is not typical for many people but i am sending it bcoz other people can come to know.

01 date1.
03 year pic x(4).
03 month pic x(2).
03 day pic x(2).

01 date2.
03 month pic x(2).
03 day pic x(2).
03 year pic x(4).

what is the result in date2 after this statement.

MOVE CORR dat1 TO date2.
Back to top
View user's profile Send private message
References
anuradha

Global Moderator


Joined: 06 Jan 2004
Posts: 257

PostPosted: Wed May 04, 2005 9:35 pm    Post subject:
Reply with quote

Hi Sreenivas,

Code:
01 date1.
03 year pic x(4) value '2005'.
03 month pic x(2) value '05'.
03 day pic x(2) value '04'

01 date2.
03 month pic x(2).
03 day pic x(2).
03 year pic x(4).

MOVE CORR date1 TO date2.


Suppose if the code is such then date2 will have 05042005
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1