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

Need a SYNCSORT Technique


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

New User


Joined: 28 Nov 2007
Posts: 63
Location: Chennai

PostPosted: Mon Feb 09, 2009 3:40 pm
Reply with quote

Hi all,

I faced a new Problem so Could you guys please help me out.

I have an input file ( Named FILE1 ) where the LRECL = 200 and it has data Upto 190 and the Rest 10 fields are Spaces. The fields are separated by ";".

In the File1 I have a field whose length = x(6) which actully starts after 4 semicolons. So there is no fixed position of the field. Please find below the Sample Input File.

Code:

----+----1----+----2----+----3----+----4----+----5----+----6----+----7--
111;123456789012;111111111;000000;sanjeet;102;sa;
222;;;333333333;222222;Sambhu;123;sa;
333;;;555555555;444444;Saam,1025;;   
444;456789012345;444444444;333333;Sampath;20;mp;
555;234567890123;222222222;111111;Sankar;101;ra;



I have one more file ( Named FILE2 ) whose LRECL = 80. That contains only two fields which has been separated by ";".

Code:

----+----1----+----2----+----3----+----4----+----5----+----6----+----7
111111111;123456789
444444444;456789012
222222222;234567890
555555555;567890123
333333333;345678901



So I need to replace the X(06) field with the new value i.e x(09) when the value present after the three ";" in FILE1 = The first field of File2.
After replacing with the length=6 to length=9 the remaining fields should come as it is .

So the output need to come as follows,


Code:

----+----1----+----2----+----3----+----4----+----5----+----6----+----7--
111;123456789012;111111111;123456789;sanjeet;102;sa;
222;;;333333333;345678901;Sambhu;123;sa;
333;;;555555555;567890123;Saam,1025;;   
444;456789012345;444444444;456789012;Sampath;20;mp;
555;234567890123;222222222;234567890;Sankar;101;ra;



Moreover the FILE1 Contains one HEADER RECORD and two TRAILER. That is not present in FILE2 but the resultant output should contain the Header and Trailer.
Back to top
View user's profile Send private message
siva102

New User


Joined: 28 Nov 2007
Posts: 63
Location: Chennai

PostPosted: Tue Feb 10, 2009 11:54 am
Reply with quote

Hi all,

Can it be done by any other means ???
Like by using the ICETOOL ???
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Tue Feb 10, 2009 12:45 pm
Reply with quote

Siva,

Which version of SyncSort are you running?
Back to top
View user's profile Send private message
siva102

New User


Joined: 28 Nov 2007
Posts: 63
Location: Chennai

PostPosted: Tue Feb 10, 2009 2:31 pm
Reply with quote

Hi Arun,

Neither I am having any Idea about that nor i know hw to check ???


If Possible please guide me hw to chk that.
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Tue Feb 10, 2009 3:17 pm
Reply with quote

Hi Siva,

You can see at first line like below when you open SYSOUT of your SORT step.
Code:
SYNCSORT FOR Z/OS  2.3.1.0NI

In that, if you see WER messages, you've SYNCSORT installed in.
Or if messages are with ICE, DFSORT is installed in.
Back to top
View user's profile Send private message
siva102

New User


Joined: 28 Nov 2007
Posts: 63
Location: Chennai

PostPosted: Tue Feb 10, 2009 3:40 pm
Reply with quote

Hi Gnanas,

Thanks for the Info.

My system is having Syncsort.

Code:

SYNCSORT FOR Z/OS  1.3.1.0N
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Tue Feb 10, 2009 8:17 pm
Reply with quote

Siva,

I believe it's possible using a PARSE/JOIN application. I am back at my SyncSort 1.2 shop; so I cant run a test now.icon_sad.gif

1. PARSE the fields by ';' to bring the fields to fixed positions
2. JOIN the above file to your second file to replace the values.
3. Left justify the resultant file after inserting back the ';'.
Back to top
View user's profile Send private message
siva102

New User


Joined: 28 Nov 2007
Posts: 63
Location: Chennai

PostPosted: Wed Feb 11, 2009 9:31 am
Reply with quote

Hi Arun,

Thanks for the idea that u gave.

I ll go through the SYNCSORT document and ll try to get the output as u adviced.
Back to top
View user's profile Send private message
Brian Wood

New User


Joined: 12 Feb 2009
Posts: 2
Location: United States

PostPosted: Fri Feb 13, 2009 1:48 am
Reply with quote

Siva: If you require further assistance with this, please contact me at zos_tech@syncsort.com.
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 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