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
 

 

To move a date s9(7) to Date s9(7) comp-3

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

New User


Joined: 15 Sep 2009
Posts: 2
Location: bhubneshwar

PostPosted: Tue Apr 06, 2010 9:25 pm    Post subject: To move a date s9(7) to Date s9(7) comp-3
Reply with quote

Hi,

as per a requirement I need to move a Date 9(7) to date S9(7) comp-3.

If i am trying this,i am getting junk values. please suggest how to do it??
Back to top
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Tue Apr 06, 2010 9:45 pm    Post subject: Re: To move a date s9(7) to Date s9(7) comp-3
Reply with quote

shuchi wrote:
as per a requirement I need to move a Date 9(7) to date S9(7) comp-3.
No problem, MOVE will work just fine.
Quote:
If i am trying this,i am getting junk values. please suggest how to do it??
No problem, the sending field has the junk values before the move.
post the data fields and the move statement.
Display the sending field before the move and the receiving field after the move.
Cut & paste the displays with "HEX ON".
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 Apr 06, 2010 9:48 pm    Post subject: Re: To move a date s9(7) to Date s9(7) comp-3
Reply with quote

shuchi wrote:
Hi,

as per a requirement I need to move a Date 9(7) to date S9(7) comp-3.

If i am trying this,i am getting junk values. please suggest how to do it??


1. RTFM the part about the format of COMP-3 values.

2. Show us what you have tried and the results (with hex on).

3. Unless you messed up something, move 9(7) field to a s9(7) comp-3 field should do it. If you don't know the format of a COMP-3 field it would look like a JUNK VALUE.
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 Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm
No new posts SUBSTR for Date functions Shaheen Shaik DB2 4 Thu Apr 06, 2017 2:14 pm
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm


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