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
 

 

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: 2237
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: 2237
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 Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 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 Moving a PD to PD spoorni DFSORT/ICETOOL 8 Fri Oct 07, 2016 9:52 pm
No new posts Format to pipe delimited with variabl... pshongal SYNCSORT 6 Wed Sep 14, 2016 2:48 pm


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