Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Help for Synctool

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
harshal

New User


Joined: 29 Dec 2005
Posts: 21

PostPosted: Wed Apr 02, 2008 11:40 am    Post subject: Help for Synctool
Reply with quote

I want to do the following.

I have multiple records in a VSAM file (will convert it to flat file before this processing) which contain a string RUSYSTM in the record, but the position where the RUSYSTM string lies withing the record is not fixed.
For record 1 it can be at position 100 and for record 2 say 160.
I want to search for this string in all record and want to write 500 bytes from the position where i found RUSYSTM string into a different file.
for record 1, it would be like write 500 bytes from position 100 and for record 2 it would be like write 500 bytes from position 160. Length of the records which are written to the output file are always same i.e 500.

I want to do this using SYNCSORT/SYNCTOOL.
Back to top
View user's profile Send private message

shankar.v

Active User


Joined: 25 Jun 2007
Posts: 196
Location: Bangalore

PostPosted: Wed Apr 02, 2008 5:26 pm    Post subject:
Reply with quote

harshal,

Please check with the following code for your requirement.
The below code works fine with SYNCSORT FOR Z/OS 1.3.0
Code:
// EXEC PGM=SORT                                         
//SYSOUT DD SYSOUT=*                                     
//SORTIN DD DSN=INFILE,DISP=SHR                           
//SORTOUT DD DSN=OUTFILE,DISP=(,CATLG),RECFM=FB,LRECL=500,
// SPACE=(CYL,1)                                         
//SYSIN DD *                                             
 OPTION COPY                                             
 INREC PARSE=(%00=(STARTAFT=C'RUSYSTM',FIXLEN=493)),     
 BUILD=(C'RUSYSTM',%00)                                   
/*                                                       
//

Thanks,
Shankar
Back to top
View user's profile Send private message
harshal

New User


Joined: 29 Dec 2005
Posts: 21

PostPosted: Thu Apr 03, 2008 11:45 am    Post subject: Reply to: Help for Synctool
Reply with quote

PARSE is coming to be UNIDENTIFIED parameter. Do i need to add some library or something for this.??
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Thu Apr 03, 2008 12:30 pm    Post subject:
Reply with quote

harshalread this
Quote:
code works fine with SYNCSORT FOR Z/OS 1.3.0
Back to top
View user's profile Send private message
harshal

New User


Joined: 29 Dec 2005
Posts: 21

PostPosted: Thu Apr 03, 2008 1:15 pm    Post subject:
Reply with quote

Can this be done without PARSE? with some other utility. My shop has license for Z/OS 1.2.3 and not for 1.3.0. Please help
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Apr 03, 2008 1:25 pm    Post subject:
Reply with quote

Hello,

Is there no chance to get your system upgraded to the current release?

You could always write a bit of code. . .
Back to top
View user's profile Send private message
harshal

New User


Joined: 29 Dec 2005
Posts: 21

PostPosted: Thu Apr 03, 2008 2:11 pm    Post subject:
Reply with quote

No chance to upgrade the system. Can it be done thru SYNCTOOL?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Apr 04, 2008 7:02 am    Post subject:
Reply with quote

Hello,

I believe you would need to be at the 1.3 level.

Fortunately, it would be a small amount of work in cobol. . .
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 SYNCTOOL better than SYNCSORT? Amit_Singh SYNCSORT 3 Wed Jul 23, 2014 11:06 am
No new posts Can any one give me any sample join s... Sanath sekhar Reddy N SYNCSORT 9 Thu Aug 08, 2013 12:03 pm
No new posts SyncSort/SyncTooL to extract records ... Hariharan BK SYNCSORT 25 Tue Jun 04, 2013 2:42 pm
No new posts Work files with SYNCTOOL mlp JCL & VSAM 3 Wed Oct 05, 2011 11:10 am
No new posts Two copies of a file in a single pass... Raymond Sachs JCL & VSAM 2 Fri Sep 09, 2011 11:36 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us