Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 10387
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: 10387
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 BUT RETAIN HIGHEST VALUE ON NON-... leondan22 DFSORT/ICETOOL 2 Thu Dec 14, 2017 8:13 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts JOINKEYS Paired and Unpaired Sort on ... MFwhiz DFSORT/ICETOOL 7 Tue Nov 07, 2017 2:46 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us