View previous topic :: View next topic
|
Author |
Message |
ramsri
Active User
Joined: 18 Oct 2008 Posts: 380 Location: India
|
|
|
|
Hi,
I have an INPUT file (LRECL=20,RECFM=FB) as shown below:
Code: |
----+----1----+----2
XXX111
XXX222
YYY333
ZZZ444
10B10B10B1
10C20D10C1
10B30A10B1
1010AB1010
|
I want my OUTPUT to be as shown below:
Code: |
----+----1----+----2
XXX111
XXX222
YYY333
ZZZ444
10B10B10B1
10C20D10C1
10B30A10B1
1010AB1010
|
Please suggest.
TIA. |
|
Back to top |
|
|
Alissa Margulies
SYNCSORT Support
Joined: 25 Jul 2007 Posts: 496 Location: USA
|
|
|
|
Ramsri,
The following SORT control statements should give you the desired results:
Code: |
//SYSIN DD *
INREC FIELDS=(1,10,JFY=(SHIFT=RIGHT))
SORT FIELDS=COPY
/* |
|
|
Back to top |
|
|
ramsri
Active User
Joined: 18 Oct 2008 Posts: 380 Location: India
|
|
|
|
Thank you |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi Alissa,
Please let me know - JFY=( .. ) is available with what release of SyncSort? I believe it's not available with SYNCSORT FOR Z/OS 1.2.3.0R, please assist. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Anuj,
chk this link
JFY VERSION
Looks like it was included in SyncSort for z/OS 1.3. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Thannks Aaru - I should have searched. I run the above job at my end and there was a syntax error
Code: |
(WER268A INREC STATEMENT : SYNTAX ERROR) |
while I recall I used JFY once at my shop - so was curious what wrong I'm doing. . .
Thanks again & welocme back. . . |
|
Back to top |
|
|
Alissa Margulies
SYNCSORT Support
Joined: 25 Jul 2007 Posts: 496 Location: USA
|
|
|
|
Hello Anuj.
Aaru is correct, support for JFY was included as of SyncSort for z/OS 1.3. Since you are running an earlier release, that is why the syntax error posted.
Regards, |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Thasnks Alissa. I would work with my system-programmers to get the version updated. Hopefully they'll do it.
Have a good one. . .
Ad |
|
Back to top |
|
|
|