Author: Ambili S
Subject: Use of Parm in SORT
Posted: Mon May 09, 2016 9:16 pm (GMT 5.5)
Hi
I am trying to get 'X' number of records from a file for each execution using ENDREC. I used SET and passed the value using PARM.
SET X=1000
In SORT , PARM='JP1"&X"'.
In Outfil i have ENDREC=JP1 , however, it is getting substituted as ENDREC=C'1000', instead of ENDREC=1000 and failing with syntax error.
_________________
Thanks
Subject: Use of Parm in SORT
Posted: Mon May 09, 2016 9:16 pm (GMT 5.5)
Hi
I am trying to get 'X' number of records from a file for each execution using ENDREC. I used SET and passed the value using PARM.
SET X=1000
In SORT , PARM='JP1"&X"'.
In Outfil i have ENDREC=JP1 , however, it is getting substituted as ENDREC=C'1000', instead of ENDREC=1000 and failing with syntax error.
_________________
Thanks