IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

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


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 2146
Location: At my coffee table

PostPosted: Tue Apr 06, 2010 9:45 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Need help to append a date&tsp at... DFSORT/ICETOOL 9
No new posts Fetch data from programs execute (dat... DB2 3
Search our Forums:

Back to Top