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 SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts 2 byte YEAR from Y'DATE2' field tecnokrat DFSORT/ICETOOL 2 Tue Feb 07, 2017 12:05 pm


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