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

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


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts STEM usage in REXX CLIST & REXX 14
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts z/OS Modules Usage report using SMF 42 DFSORT/ICETOOL 2
Search our Forums:

Back to Top