Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Syncsort E15 - Cobol program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Syncsort E15 - Cobol program
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: 6968
Location: porcelain throne

PostPosted: Thu Jul 31, 2008 6:52 pm    Post subject:
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    Post subject: Reply to: Syncsort E15 - Cobol program
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    Post subject: Reply to: Syncsort E15 - Cobol program
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    Post subject: Reply to: Syncsort E15 - Cobol program
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us