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

Syncsort - put strings side by side


IBM Mainframe Forums -> SYNCSORT
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ramas.kamal

New User


Joined: 03 Mar 2014
Posts: 22
Location: India

PostPosted: Wed May 21, 2014 4:22 pm
Reply with quote

Hi,

Request your help to put below strings side by side in output file.

Code:

20130927021545470 BJ
140330 131231 3     


Expected Output:
Code:

20130927021545470 BJ140330


I tried below given SPLICE but unfortunately do not get expected output !

Code:

SPLICE FROM(IN1) TO(OUT1) ON(21,1,CH) KEEPBASE WITHALL WITH(1,15) -
WITH(1,20)                                                         


Thanks.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed May 21, 2014 6:01 pm
Reply with quote

You have a file with only two records? What is the LRECL and RECFM?
Back to top
View user's profile Send private message
ramas.kamal

New User


Joined: 03 Mar 2014
Posts: 22
Location: India

PostPosted: Thu May 22, 2014 7:53 am
Reply with quote

yes...only two records....LRECL=80,RECFM=FB
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu May 22, 2014 12:07 pm
Reply with quote

In INREC: IFTHEN=(WHEN=NONE, append a sequence number; IFTHEN=(WHEN=GROUP with BEGIN= for sequence number of one, and PUSH the entire record to an extension of the record.

Your output from INREC will be like this, conceptually:

Code:
data-a 1 bbbbb
data-b 2 data-a



With OUTFIL, have INCLUDE= for a value of two in the sequence number. Use BUILD to put the data together how you want it.
Back to top
View user's profile Send private message
ramas.kamal

New User


Joined: 03 Mar 2014
Posts: 22
Location: India

PostPosted: Thu May 22, 2014 2:32 pm
Reply with quote

Bill, thank you for the idea......got the results !
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 -> SYNCSORT

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Count Records with a crietaria in a f... DFSORT/ICETOOL 5
No new posts DFSORT/SYNCSORT/ICETOOL JCL & VSAM 8
No new posts Syncsort "Y2C" Function SYNCSORT 1
No new posts Arithmetic division using Syncsort SYNCSORT 6
Search our Forums:

Back to Top