Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts CONDITIONAL USING COMP-2 WITH PROBLEMS. JOSUEGENTIL COBOL Programming 7 Wed Nov 08, 2017 11:13 pm
No new posts how can i move s9(9) to s9(9) usage comp HARENDRA CHOUDHARY COBOL Programming 3 Mon Nov 06, 2017 12:10 am
No new posts Move from Comp3 variable to Edited Va... Revathy.nair0485 COBOL Programming 7 Fri Nov 03, 2017 3:30 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us