Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

DFSORT/ICETOOL :: FINDREP Syntax Error

$
0
0
Author: seahawk789
Subject: FINDREP Syntax Error
Posted: Thu Mar 09, 2017 10:11 pm (GMT 5.5)

Hi Team,

I am facing an issue with FINDREP while trying to replace a text with number.

I have two texts in my input file namely - YYYYMMDD and HHMMSS which I am trying to replace with the value returned from the date time variables - &DATE1 AND &TIME1, but when I run the job its giving me SYNTAX error.
Can you please let me know how to achieve this ?

SYSIN:
Code:

//SYSIN    DD    *                                           
  SORT FIELDS=COPY                                           
  INREC FINDREP=(INOUT=(C'YYYYMMDD',&DATE1,C'HHMMSS',&TIME1))


Note: Instead of &DATE1 if I am using another string it works fine.


Viewing all articles
Browse latest Browse all 8500

Trending Articles