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
 

 

Syntax Error in Sort Statement ( ISPF PACK ON / OFF issue)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
rahul_jot

New User


Joined: 17 Aug 2005
Posts: 22
Location: Pune

PostPosted: Wed Sep 16, 2009 1:51 pm    Post subject: Syntax Error in Sort Statement ( ISPF PACK ON / OFF issue)
Reply with quote

I have SORT CARD
OUTFIL FNAMES=SORTFILA,INCLUDE=(20,1,CH,EQ,C'A')
OUTFIL FNAMES=SORTFILB,INCLUDE=(20,1,CH,EQ,C'B')
OUTFIL FNAMES=SORTFILB,INCLUDE=(20,1,CH,EQ,C'C')
OPTION COPY
The Char 'O' in the OUTFIL starts at column 6. This card is provided as cataloged PDS dataset which is FB with LRECL=80.
I am getting Syntax error with the below message:
=======================================
ICE000I 1 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R10 - 03:55 ON WED SE
F & OUTFIL FNAMES=SORTFILA,INCLUDE=(20,1,CH,EQ,C'A')
$
ICE007A 1 SYNTAX ERROR
ILB,INCLUDE=(20,1,CH,EQ,C'C') OUTFIL FNAMES=SORTFILC,INC
========================================
When the same sort card is copied into different PDS and used in the Job, it runs fine. I have encountered this multiple time with same error. Has anyone come across the same error and know why it happens so.
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Wed Sep 16, 2009 1:57 pm    Post subject: Reply to: Syntax Error in Sort Statement
Reply with quote

most probably the dataset/member giving the error has been saved with "PACK ON"

open(EDIT) the member,
in the command line type "PACK OFF;SAVE" and it should fix it

please post the result and if my suggestion worked I' ll move the topic to the proper forum ... ISPF icon_biggrin.gif
Back to top
View user's profile Send private message
rahul_jot

New User


Joined: 17 Aug 2005
Posts: 22
Location: Pune

PostPosted: Wed Sep 16, 2009 2:44 pm    Post subject: Reply to: Syntax Error in Sort Statement
Reply with quote

Thanks a lot!!! The job is working perfectly after doing Pack OFF.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Wed Sep 16, 2009 2:45 pm    Post subject: Reply to: Syntax Error in Sort Statement
Reply with quote

thnks for the info... moving the topic around
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm


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