Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

move 4 bytes using Syncsort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: move 4 bytes using Syncsort
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: 500
Location: USA

PostPosted: Thu Mar 12, 2009 10:11 pm    Post subject:
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    Post subject: Reply to: move 4 bytes using Syncsort
Reply with quote

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

Senior Member


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

PostPosted: Fri Mar 13, 2009 1:11 pm    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Fri Mar 13, 2009 1:23 pm    Post subject: Reply to: move 4 bytes using Syncsort
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

Senior Member


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

PostPosted: Fri Mar 13, 2009 2:08 pm    Post subject:
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: 500
Location: USA

PostPosted: Fri Mar 13, 2009 7:56 pm    Post subject:
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

Senior Member


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

PostPosted: Sat Mar 14, 2009 12:40 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
This topic is locked: you cannot edit posts or make replies. How to move a long alphanumeric data ... lind sh COBOL Programming 8 Mon Dec 05, 2016 7:51 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us