View previous topic :: View next topic
|
Author |
Message |
girishb2
New User
Joined: 30 Sep 2006 Posts: 14
|
|
|
|
I wrote a small SORT JCL in which I tried to fetch the date and it worked.
Can someone please help me what operand I need to give in TRAILER1 if I just need previous month & current year e.g. 082017 or 201708 or 08/2017 or 2017/08
SORTIN DD *
SORTOF1 DD mydataset
SYSIN DD *
SORT FIELDS=COPY
OUTFIL FNAMES=SORTOF1, REMOVECC, TRAILER1=(DATE) |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2141 Location: USA
|
|
Back to top |
|
|
girishb2
New User
Joined: 30 Sep 2006 Posts: 14
|
|
|
|
Does it work with TRAILER1 ? I just tried it says Syntax error. :-( |
|
Back to top |
|
|
girishb2
New User
Joined: 30 Sep 2006 Posts: 14
|
|
|
|
I got it. Thank you.
//SORTIN DD *
abcd
/*
SORTOF1 DD mydataset
SYSIN DD *
SORT FIELDS=COPY
OUTFIL FNAMES=SORTOF1, REMOVECC, OVERLAY=(&DATE2(/)-1)
It worked. :-) |
|
Back to top |
|
|
|