IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

move cooresponding


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sreenivasreddyg

New User


Joined: 23 Apr 2005
Posts: 39
Location: delhi

PostPosted: Wed May 04, 2005 6:14 pm
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
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Wed May 04, 2005 9:35 pm
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts How to move DB2 Installation HLQ DB2 4
No new posts How to move values from single dimens... COBOL Programming 1
No new posts Reading the CSV data in COBOL and mov... COBOL Programming 4
Search our Forums:

Back to Top