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: 6966
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 SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 7 Sat Jan 21, 2017 4:02 am


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