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
 
Move COMP variable declared as alphanumeric to COMP variable

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Move COMP variable declared as alphanumeric to COMP variable
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    Post subject:
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: 6970
Location: porcelain throne

PostPosted: Thu Oct 22, 2009 7:43 pm    Post subject:
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    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 COMP Variables Mismatch gayu7 COBOL Programming 5 Wed Dec 20, 2017 5:06 pm
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts CONDITIONAL USING COMP-2 WITH PROBLEMS. JOSUEGENTIL COBOL Programming 7 Wed Nov 08, 2017 11:13 pm
No new posts how can i move s9(9) to s9(9) usage comp HARENDRA CHOUDHARY COBOL Programming 3 Mon Nov 06, 2017 12:10 am
No new posts Move from Comp3 variable to Edited Va... Revathy.nair0485 COBOL Programming 7 Fri Nov 03, 2017 3:30 pm

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