yianis
New User
Joined: 14 Aug 2006 Posts: 45
|
|
|
|
I looked before I posted and tried several things, but I want to know if this can be done in one single step...
Code: |
OPTION COPY,STOPAFT=1
OUTREC BUILD=(C'MYDATE,''',DATE3,C'''',80:X) |
the output is
I do not want the first number as I want the output to be
Is there a format for that?
I know I can massage the data in a further step, but wondering if I can do that in the same step with some format? |
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
You can do it in one pass with these DFSORT statements:
Code: |
OPTION COPY,STOPAFT=1
INREC BUILD=(C'MYDATE,''',DATE3,C'''')
OUTREC BUILD=(1,8,10,7,80:X)
|
or these DFSORT statements:
Code: |
OPTION COPY,STOPAFT=1
INREC IFOUTLEN=80,
IFTHEN=(WHEN=INIT,
BUILD=(C'MYDATE,''',DATE3,C'''')),
IFTHEN=(WHEN=INIT,
BUILD=(1,8,10,7))
|
|
|