IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Syncsort E15 - Cobol program


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Sasi Kiran Patha
Warnings : 2

New User


Joined: 19 Nov 2006
Posts: 73
Location: Hyederabad

PostPosted: Thu Jul 31, 2008 6:10 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Jul 31, 2008 6:52 pm
Reply with quote

Code:

MOVE COPYBOOK2 to RECORD-OUT.
...
...
move 20 to record-out


this does not make any sense.
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: Thu Jul 31, 2008 6:57 pm
Reply with quote

sorry ,,
it is
MOVE 20 RETURN-CODE.
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: Thu Jul 31, 2008 7:02 pm
Reply with quote

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
View user's profile Send private message
Sasi Kiran Patha
Warnings : 2

New User


Joined: 19 Nov 2006
Posts: 73
Location: Hyederabad

PostPosted: Fri Aug 01, 2008 3:50 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Compare only first records of the fil... SYNCSORT 7
Search our Forums:

Back to Top