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

Moving a Comp-3 field to AlphaNumeric field


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
adapalam

New User


Joined: 14 Mar 2007
Posts: 6
Location: hyderabad

PostPosted: Wed Apr 18, 2007 4:18 pm
Reply with quote

there is an alphanumeric field whose value is 0001234.56 ,can i move this to comp-3 field. If so how shud i do it... plz can u help me out
Back to top
View user's profile Send private message
ragganga

New User


Joined: 22 Jan 2007
Posts: 18
Location: bangalore

PostPosted: Wed Apr 18, 2007 5:11 pm
Reply with quote

Hi Adapalam,

If you move this value (0001234.56), you will get SOC7 error

Regards
Raghu
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Wed Apr 18, 2007 6:59 pm
Reply with quote

Adapalam,
Yes you can move this alphanumeric field to COMP-3.
Quote:

compute comp-three-var = function numval-c (alpha-var)

Simple isn't it.
now even if you do-
Code:
move alpha-var to comp-three-var

NOTE:
You wont get S0C7.
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 Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts Join 2 files according to one key field. JCL & VSAM 3
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
Search our Forums:

Back to Top