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

Problem with JCL coding for sorting


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 1448
Location: Chicago, IL

PostPosted: Wed Dec 14, 2005 10:11 pm
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

Global Moderator


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

PostPosted: Thu Dec 15, 2005 1:14 am
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
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: 411
Location: Colarado, US

PostPosted: Thu Dec 15, 2005 2:52 pm
Reply with quote

Hi tarunflash,

Check this link for more information.

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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
This topic is locked: you cannot edit posts or make replies. Automation need help in sorting the data DFSORT/ICETOOL 38
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Job scheduling problem. JCL & VSAM 9
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
Search our Forums:

Back to Top