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

DFSORT Syntax Error in Production region


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
srini1528
Currently Banned

New User


Joined: 25 Apr 2007
Posts: 13
Location: INDIA

PostPosted: Mon Jul 09, 2007 11:58 am
Reply with quote

Hi,

When i run the below sort

Code:
   OPTION COPY                                                   
   OUTREC IFTHEN=(WHEN(126,25,CH,EQ,C'                         '), 
             OVERLAY=(821:70,56,877:4C' ')),                       
          IFTHEN=(WHEN(126,25,CH,NE,C'                         '), 
             OVERLAY=(821:126,56,877:4C' '))                       
It runs fine when i run in SYSE region which is our test region, when we try it in production region SYSG,SYSA it is showing a syntax error.
Back to top
View user's profile Send private message
sril.krishy

Active User


Joined: 30 Jul 2005
Posts: 183
Location: hyderabad

PostPosted: Mon Jul 09, 2007 12:28 pm
Reply with quote

srini1528,
Please put some meaning ful heading for the problem instead of HELP.I think you need to find out the SYSE system libraries and use the same for the PROD job by using the STEPLIB statement.

ANyway ,have you checked the SORT versions on both the SYSE and PROD ?

Thanks
Krishy
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Jul 09, 2007 12:35 pm
Reply with quote

srini1528 wrote:
it is throwing syntax error. Help me how to resolve this.
We would be delighted, please post the entire sysout including the error.
Also, post the sysout of the run that "runs fine".
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Mon Jul 09, 2007 8:02 pm
Reply with quote

Actually, your control statements as shown would get a syntax error on any version of DFSORT because you have WHEN(...) instead of WHEN=(...). The correct syntax would be:

Code:

  OPTION COPY                                 
   OUTREC IFTHEN=(WHEN=(126,25,CH,EQ,C' '),   
             OVERLAY=(821:70,56,877:4C' ')),   
          IFTHEN=(WHEN=(126,25,CH,NE,C' '),   
             OVERLAY=(821:126,56,877:4C' '))   


Note that you only need one blank for the constant in the WHEN condition.

If you actually have WHEN=(...) rather than WHEN(...), then without seeing the actual syntax error you received, I can take an educated guess that it was for IFTHEN and the reason is that you have the April, 2006 DFSORT PTF installed on your test system but not on your production system.

You need z/OS DFSORT V1R5 PTF UK90007 or DFSORT R14 PTF UK90006 (April, 2006) in order to use DFSORT's IFTHEN and OVERLAY functions. Ask your System Programmer to install it on the production system. For complete details on all of the new DFSORT and ICETOOL functions available with the April, 2006 PTF, see:

Use [URL] BBCode for External Links

The other possibility is that you're not using DFSORT.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
Search our Forums:

Back to Top