Hi My request is to have Header in all outfile and Header should have MOnth and Year from current date.
Sort provided function DATE2 but i tried various way and sort step only fail , can you guide how can i use this. SPent lot of time searching and doing R&D but no success
Hi My request is to have Header in all outfile and Header should have MOnth and Year from current date.
Sort provided function DATE2 but i tried various way and sort step only fail , can you guide how can i use this. SPent lot of time searching and doing R&D but no success
PLEASE!!!!!!
Provide the code you have used, and the exact errors you have got.
Otherwise it is just wasting of time - reading meaningless postings on the forum.
P.S.
Do not reply that "your code is a Top Secret information".
***************************** Top of Data **************************
SORT FIELDS=(8,18,CH,A)
OMIT COND=(1,4,CH,EQ,C'BANK',OR,
1,1,CH,EQ,C'9',OR,1,1,CH,EQ,C'T')
OUTFIL REMOVECC,
HEADER1=(1:C'MONTHLY FILE CREATED ON : ',27:DATE2(-),/,
1:'BETA ',
'GMMA A ',
'AMOUNT ',
'AMT NUMBER ',
'DATE '),
BUILD=(1,80),
SECTIONS=(8,18,TRAILER3=('9',X,10,18,X,COUNT=(M10,LENGTH=8),51X)),
TRAILER1=(1:'T',X,
3:COUNT=(M10,LENGTH=13),X, * REC COUNT LEADING SPACES
17:TOT=(53,13,ZD,M10,LENGTH=18),46X) * TOT AMT LEADING SPACES
It is showing syntax error, with same card if I use DATE=4MD or dateins result are good.but with Date2 it fails
I am not able to fix so wanted ur help asap if poasible
OUTFIL REMOVECC,
HEADER1=(1:C'MONTHLY FILE CREATED ON : ',27:MyYear,C'-',MyMonth,/,
BTW: The word "asap" leads always to slower processing of any help by the volunteers of this forum. If you need something asap, hire a well paid professional.
SORT FIELDS=(8,18,CH,A)
OMIT COND=(1,4,CH,EQ,C'BANK',OR,
1,1,CH,EQ,C'9',OR,1,1,CH,EQ,C'T')
OUTFIL REMOVECC,
HEADER1=(1:C'MONTHLY FILE CREATED ON : ',27:JP1,C'/',JP2,/,
*
1:'TV CODE ',
'TV NUMBER ',
'AMT N ',
'NUMBER ',
'PDDATE '),
BUILD=(1,80),
SECTIONS=(8,18,TRAILER3=('9',X,10,18,X,COUNT=(M10,LENGTH=8),51X)),
TRAILER1=(1:'T',X,
3:COUNT=(M10,LENGTH=13),X, * REC COUNT LEADING SPACES
17:TOT=(53,13,ZD,M10,LENGTH=18),46X) * TOT AMT LEADING SPACES
WER813I INSTALLATION OPTIONS IN MFX LOAD LIBRARY WILL BE USED
WER268A OUTFIL STATEMENT : SYNTAX ERROR
WER578I SORTL INSTRUCTION NOT USED; REASON CODE=FE
Appreciate all members efforts. it is just i am trying from 3 days and still nothing
All other date formats (including &DATE2 - with ampersand!!!) are used only for data records, not for headers/trailers.
Just use any of allowed code, and forget about absolutely stupid initial requirements.
Code:
HEADER1=(1:C'MONTHLY FILE CREATED ON : ',27:&DATE=(4MD-),/,
Code:
********************************* TOP OF DATA *************
MONTHLY FILE CREATED ON : 2023-08-25
BETA GMMA A AMOUNT AMT NUMBER DATE
1234567890
******************************** BOTTOM OF DATA ***********
P.S.
You are still not able even to learn how to use the Code button! To say nothing about RTFM...