Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Moving a COMP-3 variable to a numeric field

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Moving a COMP-3 variable to a numeric field
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us