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

Move COMP variable declared as alphanumeric to COMP variable


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

New User


Joined: 11 Oct 2009
Posts: 4
Location: hyderabad

PostPosted: Thu Oct 22, 2009 7:16 pm
Reply with quote

A file layout is defined as alphanumeric but it is known that at a particular position its having COMP data. when trying to move that part of the COMP data into a COMP variable its giving a SOC7 abend.
Is it possible to move like this.If not do we have any method to move that Alphanumeric declared COMP value into a COMP variable.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Oct 22, 2009 7:28 pm
Reply with quote

I think something is not quite correct in your explanation. What is the definition of both fields and how are you doing the move?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Oct 22, 2009 7:43 pm
Reply with quote

Quote:
A file layout is defined as alphanumeric but it is known that at a particular position its having COMP data.


well the easiest way would be to correct the file layout.

short of doing it properly,
you could redefine the destination field as x-type and do an x to x move,
then afterwards refer to the COMP definition of the destination field.

what is the actual MOVE instruction? (with data layout definitons)

also, never heard of a COMP field generating a SOC7 abend.

I would imagine your abend is coming from manipulation of either numeric display or COMP-3 fields.
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 Duplicate transid's declared using CEDA CICS 3
No new posts Variable Output file name DFSORT/ICETOOL 8
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
Search our Forums:

Back to Top