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: 10274
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: 10274
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 SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Optimize sort inrec parse vishwakotin DFSORT/ICETOOL 6 Mon Jun 26, 2017 11:15 pm
No new posts Reduce CPU Times for Join Sort santoshn SYNCSORT 12 Sat Jun 10, 2017 1:40 pm
No new posts NDM syntax checking without actually ... GAPX1 All Other Mainframe Topics 0 Wed Jun 07, 2017 2:36 am


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