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
 
Moving a variable length record " S0C7 "

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Sasi Kiran Patha
Warnings : 2

New User


Joined: 19 Nov 2006
Posts: 73
Location: Hyederabad

PostPosted: Tue Jan 09, 2007 11:18 am    Post subject: Moving a variable length record " S0C7 "
Reply with quote

hi,

I have a VS COBOL program to be converted to COBOL/370 version.

In the program the record (01 level) INTERFACE-RECORD is in a copy book that is of variable lenth [2393]. The record contains both numeric and alphanumeric fields.

COBOL/370 is not allowing the initialization of INTERFACE-RECORD.
In VS COBOL spaces are moved to INTERFACE-RECORD.

While executing a move statement in COBO/370 version:
MOVE INTERFACE-RECORD to ws-record [pic x(937)] S0C7 is encountered.

how do we solve this.

regards,
Sasi Patha.
Back to top
View user's profile Send private message

trgk03

New User


Joined: 20 Jan 2006
Posts: 12
Location: kochi

PostPosted: Tue Jan 09, 2007 1:21 pm    Post subject:
Reply with quote

Hi Patha,

I think you cannot move INTERFACE-RECORD to ws-record [pic x(937)] directly instead you need to move the individual variables one by one into ws-record.(define similar variables under ws-record of same size as that of interface-record)
I think this abend code SOC7 is comming becz u are moving variables of incompatiable type.

Regards,
Ds
Back to top
View user's profile Send private message
Sasi Kiran Patha
Warnings : 2

New User


Joined: 19 Nov 2006
Posts: 73
Location: Hyederabad

PostPosted: Tue Jan 09, 2007 2:02 pm    Post subject: Re: Moving a variable length record " S0C7 "
Reply with quote

hi,
I was able to debug the issue.

the interface-record was variable length because of a table having depending upon clause. The depending upon variable was not intitialized in the COBOL program. done it and successfully executed.

Thank u for reply.
regards,
Sasi Patha.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jan 10, 2007 4:23 am    Post subject:
Reply with quote

Hello,

Just want to add a bit of clarification -

The 0c7 was not caused by the move of unequal lengths. Group moves are alphanumeric and will not give an 0c7.

The abend was most likely due to using a "numeric" field that was corrupted by the mis-matched move.

Good catch finding your abend icon_biggrin.gif
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Moving UDB database to Db2 on z/OS Keith Hooley DB2 4 Wed Sep 27, 2017 12:38 am
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

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