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
This topic is locked: you cannot edit posts or make replies. How to move a long alphanumeric data ... lind sh COBOL Programming 8 Mon Dec 05, 2016 7:51 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
This topic is locked: you cannot edit posts or make replies. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm


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