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: 6968
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 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
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm

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