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

Moving a COMP-3 variable to a numeric field


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

New User


Joined: 18 Mar 2008
Posts: 2
Location: Chennai

PostPosted: Tue Mar 18, 2008 11:10 am
Reply with quote

Hi,

i have a COMP-3 variable RCD-DATE PIC S9(6) COMP-3 which has the value 080205. Now what will happen when i try to move it to this 01 LEVEL variable

01 WS-HB-DATE
05 WS-HB-YEAR PIC 9(4)
05 WS-HB-MNTH PIC 9(2)
05 WS-HB-DAY PIC 9(2)

Please let me know your answers
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Tue Mar 18, 2008 11:34 am
Reply with quote

Quote:
karthickrajamani
Question - Do you have access to compile and execute this code?
Back to top
View user's profile Send private message
karthickrajamani
Currently Banned

New User


Joined: 18 Mar 2008
Posts: 2
Location: Chennai

PostPosted: Tue Mar 18, 2008 11:36 am
Reply with quote

Ni i dont have access .... I wud have displayed the variables if i can execute
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Tue Mar 18, 2008 7:59 pm
Reply with quote

Since you know COBOL what do you think the output will be!
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Tue Mar 18, 2008 8:09 pm
Reply with quote

It won't be anything useful.
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 Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
Search our Forums:

Back to Top