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
 

 

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: 6966
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
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 Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
No new posts Format to pipe delimited with variabl... pshongal SYNCSORT 6 Wed Sep 14, 2016 2:48 pm
This topic is locked: you cannot edit posts or make replies. Alphanumeric to Numeric move on UNIX mistah kurtz COBOL Programming 16 Wed Jul 27, 2016 8:47 pm


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