View previous topic :: View next topic
|
Author |
Message |
Sasi Kiran Patha Warnings : 2 New User
Joined: 19 Nov 2006 Posts: 73 Location: Hyederabad
|
|
|
|
Hi,
Im using an existing cobol program for E15 exit.
Im getting sortout file with same no of records
as sortin file, but with data is not found in the
sortout file.
The cobol code is like this:
MOVE RECORD-IN TO COPYBOOK1.
MOVE DATA FROM COPYBOOK1 TO COPYBOOK2.
(after modifying a few data items.)
MOVE COPYBOOK2 to RECORD-OUT.
IF LAST-TIME
move 8 to return-code
else
move 20 to record-out.
MOVE 4 TO SEQ-CHECK
GOBACK
If copybook2 is displayed before check on LAST-TIME
im able to see the data in the spool.
SYSIN of syncsort:
SORT FIELDS=COPY
MODS E15=(YPSURR15,12500,EXIT1535,C)
END
Please suggest me to rectify this.
Regards,
Sasi Kiran Patha. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Code: |
MOVE COPYBOOK2 to RECORD-OUT.
...
...
move 20 to record-out
|
this does not make any sense. |
|
Back to top |
|
|
Sasi Kiran Patha Warnings : 2 New User
Joined: 19 Nov 2006 Posts: 73 Location: Hyederabad
|
|
|
|
sorry ,,
it is
MOVE 20 RETURN-CODE. |
|
Back to top |
|
|
Sasi Kiran Patha Warnings : 2 New User
Joined: 19 Nov 2006 Posts: 73 Location: Hyederabad
|
|
|
|
The following are in linkage section:
(im not aware of their importance)
01 EXIT-STATUS PIC 9(08) COMP.
88 FIRST-TIME VALUE 00.
88 MOST-TIME VALUE 04.
88 LAST-TIME VALUE 08.
SKIP1
01 RECORD-UP.
05 RECORD-IN PIC X(4000).
SKIP1
01 WORK.
05 RECORD-OUT PIC X(4000).
SKIP1
01 IN-BUF.
05 RECORD-BUFFER PIC X(4000).
SKIP1
01 SEQ-CHECK PIC 9(08) COMP.
88 YES-CHECK VALUE 0.
88 NO-CHECK VALUE 4.
01 AREA010 PIC X.
01 AREA020 PIC X.
01 AREA030 PIC X.
EJECT |
|
Back to top |
|
|
Sasi Kiran Patha Warnings : 2 New User
Joined: 19 Nov 2006 Posts: 73 Location: Hyederabad
|
|
|
|
hi , this is solved.
I got Syncsort manual , and changed the program
to work for variable length records (This includes changes to WORK-OUT and RECORD-UP.
Thank you,
Sasi Kiran Patha. |
|
Back to top |
|
|
|