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

issue with Syntax error


IBM Mainframe Forums -> SYNCSORT
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
shub2204

New User


Joined: 13 May 2020
Posts: 19
Location: India

PostPosted: Wed Aug 12, 2020 3:11 pm
Reply with quote

HI ,

Can someone please take a look what is the issue with my code.
Code:

ICE805I 1 JOBNAME: CPFPH06A , STEPNAME: STEP0010
ICE802I 0 BLOCKSET     TECHNIQUE IN CONTROL
ICE143I 0 BLOCKSET     COPY  TECHNIQUE SELECTED
ICE250I 0 VISIT http://www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES AN
ICE000I 1 - CONTROL STATEMENTS FOR 5650-ZOS, Z/OS DFSORT V2R3  - 10:29 ON WED AU
            SORT FIELDS=COPY
            OUTREC FIELDS=(1,1,80)
             OUTFIL FILES=01,OMIT=(1,1,SS,EQ,C'.'),FTOV,
             IFTHEN=(WHEN=(1,80,SS,EQ,C'YYYYMMDD'),
             FINDREP=(IN=C'YYYYMMDD',OUT=DATE1))
                                         £
ICE007A 1 SYNTAX ERROR
             OUTFIL FILES=02,INCLUDE=(1,1,SS,EQ,C'.'),FTOV
ICE751I 0 C5-BASE   C6-BASE   C7-BASE   C8-BASE   E7-I49502
ICE052I 3 END OF DFSORT
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Wed Aug 12, 2020 4:05 pm
Reply with quote

First, why post in the SYNCSORT forum when you're using IBM's DFSORT (as indicated by the output messages) ?

Try using:
Code:
 FINDREP=(IN=C'YYYYMMDD',OUT=C'&DATE1'))


Garry
Back to top
View user's profile Send private message
shub2204

New User


Joined: 13 May 2020
Posts: 19
Location: India

PostPosted: Wed Aug 12, 2020 4:16 pm
Reply with quote

Hello Garry .

I have oved this to DFSORT but putting &DATE1 simply replaced it with &DATE1 . I want today's date to be added here.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> SYNCSORT

 


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 SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
Search our Forums:

Back to Top