Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Date in where clause - Windows Karthikeyan Subbarayan DB2 9 Wed Nov 15, 2017 9:07 pm
No new posts CONDITIONAL USING COMP-2 WITH PROBLEMS. JOSUEGENTIL COBOL Programming 7 Wed Nov 08, 2017 11:13 pm
No new posts how can i move s9(9) to s9(9) usage comp HARENDRA CHOUDHARY COBOL Programming 3 Mon Nov 06, 2017 12:10 am
No new posts Move from Comp3 variable to Edited Va... Revathy.nair0485 COBOL Programming 7 Fri Nov 03, 2017 3:30 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us