IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

move 4 bytes using Syncsort


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ramsri

Active User


Joined: 18 Oct 2008
Posts: 380
Location: India

PostPosted: Thu Mar 12, 2009 9:54 pm
Reply with quote

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
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Thu Mar 12, 2009 10:11 pm
Reply with quote

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
View user's profile Send private message
ramsri

Active User


Joined: 18 Oct 2008
Posts: 380
Location: India

PostPosted: Thu Mar 12, 2009 10:26 pm
Reply with quote

Thank you icon_biggrin.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Mar 13, 2009 1:11 pm
Reply with quote

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
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Fri Mar 13, 2009 1:23 pm
Reply with quote

Anuj,

chk this link

JFY VERSION

Looks like it was included in SyncSort for z/OS 1.3.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Mar 13, 2009 2:08 pm
Reply with quote

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. . . icon_smile.gif
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Fri Mar 13, 2009 7:56 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Sat Mar 14, 2009 12:40 pm
Reply with quote

Thasnks Alissa. I would work with my system-programmers to get the version updated. Hopefully they'll do it.

Have a good one. . . icon_smile.gif

Ad
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts Masking variable size field - min 10 ... DFSORT/ICETOOL 4
No new posts Count Records with a crietaria in a f... DFSORT/ICETOOL 5
Search our Forums:

Back to Top