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

Moving AlphaNumeric Variable to Comp3


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

New User


Joined: 06 Nov 2006
Posts: 10

PostPosted: Mon Jan 01, 2007 12:02 pm
Reply with quote

can we pass a AlphaNumeric Value into comp3 ?

Exp: I have a variable
01 A pic X(4) value '9999'.
01 B comp3.

Procedure Division.
Move A to B.
StopRu

It is show as trancation occured.

Pls Tell the solution as early as possible.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Mon Jan 01, 2007 12:28 pm
Reply with quote

Hi roshansawant

Ya it is possible.But I am not clear with the picture clause you've given for 'B'.It should be PIC 9(4) COMP-3


Thanks
Arun
Back to top
View user's profile Send private message
roshansawant
Warnings : 1

New User


Joined: 06 Nov 2006
Posts: 10

PostPosted: Mon Jan 01, 2007 12:38 pm
Reply with quote

Arun

yeh I have given 01 B S9(4)comp3.

Then also its showing trancation.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Mon Jan 01, 2007 12:57 pm
Reply with quote

Hi roshansawant

I gave the same code and it is not showing any error.Could you please paste here the error message you are getting.

Thanks
Arun
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Wed Jan 03, 2007 6:58 am
Reply with quote

roshansawant,

Also, what compiler version are you using?
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts parsing variable length/position data... DFSORT/ICETOOL 5
No new posts Masking variable size field - min 10 ... DFSORT/ICETOOL 4
Search our Forums:

Back to Top