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
 
Moving AlphaNumeric Variable to Comp3

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Moving AlphaNumeric Variable to Comp3
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: 2285
Location: @my desk

PostPosted: Mon Jan 01, 2007 12:28 pm    Post subject: Re: I want to more AlphaNumeric Variable to Comp3..
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    Post subject: Re: I want to more AlphaNumeric Variable to Comp3..
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: 2285
Location: @my desk

PostPosted: Mon Jan 01, 2007 12:57 pm    Post subject:
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    Post subject: Re: Moving AlphaNumeric Variable to Comp3
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    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 Moving UDB database to Db2 on z/OS Keith Hooley DB2 4 Wed Sep 27, 2017 12:38 am
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Move from Comp3 variable to Edited Va... sreekusr COBOL Programming 8 Thu Aug 10, 2017 4:20 pm
No new posts Can I traverse a STEM variable? chong.zhou CLIST & REXX 5 Wed May 31, 2017 3:54 pm

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