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
 

 

Is there any problem in moving data for COMP-3 veriables

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Laxminarsimharao

New User


Joined: 08 May 2007
Posts: 26
Location: hyderabad

PostPosted: Mon Jan 21, 2008 5:20 pm    Post subject: Is there any problem in moving data for COMP-3 veriables
Reply with quote

I am moving date from A-DT to B-DT
where

10 A-DT PIC S9(7) COMP-3. ---- Size is 4
10 B-DT PIC 9(8) COMP-3. ---- Size is 5

OUTPUT DATA
----------------------
108017

My question is
1) is there any differnece in moving A-DT to B-DT ?
is the output B-DT is accurate or not ?
2) In the above output '108017' 08 - is year 2008 and 017 is date - Jan 17 then what is the 1 ?

Please clarify .......
Back to top
View user's profile Send private message

Laxminarsimharao

New User


Joined: 08 May 2007
Posts: 26
Location: hyderabad

PostPosted: Mon Jan 21, 2008 6:47 pm    Post subject: Reply to: Is there any problem in moving data for COMP-3 ver
Reply with quote

Input is Sys-Date
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1226
Location: Israel

PostPosted: Mon Jan 21, 2008 8:50 pm    Post subject:
Reply with quote

Very often, you have to add 1900 to a short date to get a long date.
so 108 + 1900 = 2008
and 097 + 1900 = 1997
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 Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


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