View previous topic :: View next topic
|
Author |
Message |
mturangi
New User
Joined: 26 Jul 2008 Posts: 15 Location: Jefferson city, MO, USA
|
|
|
|
We are getting S0C7 error for the following statement
MOVE LENGTH OF 01-FILE-RECORD TO 01-FILE-LENGTH.
Here 01-FILE-RECORD is a variable file record and 01-FILE-LENGHT is declared as S9(04) COMP.
FYI, for fixed length file records we have no issues. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Quote: |
01-FILE-LENGHT is declared as S9(04) COMP. |
how is 01-FILE-LENGTH defined?
is 01-FILE-RECORD part of the FD section?
if so, has the file been opened?
has 01-FILE-RECORD been initialized or populated? |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
MOVE LENGTH OF 01-FILE-RECORD TO 01-FILE-LENGTH. |
Suggest you post the SELECT, the FD, the working-storage field and what you believe is the problem MOVE. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
also the OPEN statement.
it appears from the code snipet, the TS is attempting to write variable len records.
Quote: |
FYI, for fixed length file records we have no issues.
|
what does that mean?
are you attempting to use a length for fixed length records
or
what?
Why are you moving a LENGTH of Reference name?
again, what are you trying to do? |
|
Back to top |
|
|
|