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
 

 

Problem with JCL coding for sorting

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
NickCZ

New User


Joined: 14 Dec 2005
Posts: 5

PostPosted: Wed Dec 14, 2005 9:56 pm    Post subject: Problem with JCL coding for sorting
Reply with quote

Hello,
I`m beginer in JCL coding :-)
I have problem with my JCL.
Here is my JCL for sorting:
Code:
                                                     
//STEP1   EXEC PGM=ICEMAN                                             
//SYSOUT    DD SYSOUT=*                                               
//SORTIN    DD DSN=CY34333.PHARMA5.TEXT,DISP=OLD                     
//SORTOUT   DD DSN=CY34333.SORTED.EX0001,DISP=(NEW,CATLG,DEL),       
//       UNIT=DASD,SPACE=(TRK,(20,5),RLSE)                           
//SYSIN     DD *                                                     
     SORT FIELD(89,5,CH,A)                                             
/*                                                                   


And I got this result in JOB Log:


18.09.02 JOB01503 ---- WEDNESDAY, 14 DEC 2005 ----
18.09.02 JOB01503 IRR010I USERID CY34333 IS ASSIGNED TO THIS JOB.
18.09.02 JOB01503 IEFC452I JOB1 - JOB NOT RUN - JCL ERROR 504
------ JES2 JOB STATISTICS ------
10 CARDS READ
22 SYSOUT PRINT RECORDS
0 SYSOUT PUNCH RECORDS
1 SYSOUT SPOOL KBYTES
0.00 MINUTES EXECUTION TIME
1 //JOB1 JOB 111,'NIKOLAY',MSGLEVEL=(1,1),CLASS=A,NOTIFY=CY34333,
// MSGCLASS=A
2 //STEP1 EXEC PGM=ICEMAN
3 //SYSOUT DD SYSOUT=*
4 //SORTIN DD DSN=CY34333.PHARMA5.TEXT,DISP=OLD
5 //SORTOUT DD DSN=CY34333.SORTED.EX0001,DISP=(NEW,CATLG,DEL),
// UNIT=DASD, SPACE=(TRK,(20,5),RLSE)
6 //SYSIN DD *
STMT NO. MESSAGE
5 IEFC621I EXPECTED CONTINUATION NOT RECEIVED
******************************** BOTTOM OF DATA ********************************

How to solve this problem?
Back to top
View user's profile Send private message

priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Wed Dec 14, 2005 10:11 pm    Post subject: Re: Problem with a SORT command
Reply with quote

Here is the culprit...
Code:
//SORTOUT DD DSN=CY34333.SORTED.EX0001,DISP=(NEW,CATLG,DEL),
// UNIT=DASD, SPACE=(TRK,(20,5),RLSE)


Make it like
Code:
//SORTOUT DD DSN=CY34333.SORTED.EX0001,DISP=(NEW,CATLG,DELETE),
// UNIT=DASD,SPACE=(TRK(20,5),RLSE)


Give JEM command to find out such Syntactical Errors.

Regards,

Priyesh.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Thu Dec 15, 2005 1:14 am    Post subject: Re: Problem with a SORT command
Reply with quote

Also, it's
Code:

   SORT FIELDS=(89,5,CH,A)
   not
   SORT FIELD(89,5,CH,A)
Back to top
View user's profile Send private message
tarunflash

New User


Joined: 15 Oct 2005
Posts: 25

PostPosted: Thu Dec 15, 2005 2:43 pm    Post subject: Re: Problem with JCL
Reply with quote

what is this ICEMAN?
Back to top
View user's profile Send private message
iknow

Active User


Joined: 22 Aug 2005
Posts: 413
Location: Colarado, US

PostPosted: Thu Dec 15, 2005 2:52 pm    Post subject: Re: Problem with JCL
Reply with quote

Hi tarunflash,

Check this link for more information.

http://ibmmainframes.com/viewtopic.php?t=5875&highlight=iceman
Back to top
View user's profile Send private message
NickCZ

New User


Joined: 14 Dec 2005
Posts: 5

PostPosted: Thu Dec 15, 2005 10:17 pm    Post subject:
Reply with quote

Thank you, priyesh.agrawal and superk icon_smile.gif
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 Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts Sorting group data rajella DFSORT/ICETOOL 4 Sun Jan 22, 2017 11:32 pm
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


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