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

DFSORT/ICETOOL :: RE: Change date (DD/MM/YY) in 2nd record of a file using DFSORT

$
0
0
Author: Rohit Umarjikar
Posted: Fri Sep 09, 2016 1:49 am (GMT 5.5)

I guess, it was a coincidence that TS posted the current date as an example
Quote:
As an example they all have header as shown below,

Uday, please make a use of code tags going forward and try this for what you want
Code:
//SORTIN   DD *                                                     
PART A   12/12/16                                                   
//SORTOUT   DD SYSOUT=*                                             
//SYSIN DD *                                                       
    SORT FIELDS=COPY                                               
    INREC IFTHEN=(WHEN=(1,6,CH,EQ,C'PART A'),OVERLAY=(40:DATE1(.)-1,
                                      10:48,2,C'/',45,2,C'/',42,2)),
    IFOUTLEN=17                                                     

_________________
Regards,
Rohit Umarjikar
"Knowledge is knowing that a tomato is a fruit, but Wisdom is knowing not to put it in a fruit salad."icon_razz.gif


Viewing all articles
Browse latest Browse all 8500

Trending Articles