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
 

 

Move S9(4) to S9(5) v usage comp-3

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

New User


Joined: 25 Sep 2005
Posts: 1
Location: USA

PostPosted: Sun Sep 25, 2005 10:44 pm    Post subject: Move S9(4) to S9(5) v usage comp-3
Reply with quote

Hi All:
01 Field1 9(4)
02 Field2 S9(5)v usage comp-3

I am trying to move move file1 to filed2 and comparing with Column of DB2 Table COL1

COL1 declared as S9(5)v usage comp-3 in DCLGEN.

I am getting Sql Code 301

I displayed filed2 after move but ot not moving properly.

I need help on how it works when we move field1 to field2

Thank you
Back to top
View user's profile Send private message

sridevi2005

New User


Joined: 15 Sep 2005
Posts: 42

PostPosted: Mon Sep 26, 2005 10:34 am    Post subject: Re: Move S9(4) to S9(5) v usage comp-3
Reply with quote

Hi,

Moving from field1 to field2 is correct.

It's working fine.

I think problem with DB2 Data type.

01 FIELD1 PIC 9(4) VALUE 1234.
01 FIELD2 PIC S9(5)V USAGE COMP-3.

MOVE FIELD1 TO FIELD2.
DISPLAY "FIELD1 = " FIELD1
DISPLAY "FIELD2 = " FIELD2

I have used the above code for moving.

It's working fine.

If i'm wrong please let me know.

Thanks,
Sridevi
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 DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 8 Wed Jan 25, 2017 8:24 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:23 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:21 pm
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 Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm


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