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

SYNCSORT data between delimiters


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

New User


Joined: 22 Nov 2005
Posts: 24

PostPosted: Wed Dec 17, 2008 4:36 pm
Reply with quote

Hi,

I have a file which has some account related data which is a table extract and contains a var char field.

Input

12345678 abdcdelelele:57D://dsfdsf..cderfe.dwerggd:59://sdfsdfdsfdsf
45464355 madfdfdsfdfdfdsfdf:57D://w3fdsfdsfdf..dsfdfdf:59://dsfdefdsf

I would like to extract the data present between :57D:// and :59://. The position of these are not constant in the file.

Output required

12345678 dsfdsf..cderfe.dwerggd
45464355 w3fdsfdsfdf..dsfdfdf
Back to top
View user's profile Send private message
Arun Raj

Moderator


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

PostPosted: Wed Dec 17, 2008 9:58 pm
Reply with quote

nimisanand,

I think this can be done using the PARSE parameter if you have SyncSort for z/OS R 1.3 or later. If you dont have the recent version of SyncSort, a REXX solution could be an alternate approach. Search the forum and you'll find some tested/working code.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Dec 17, 2008 11:17 pm
Reply with quote

Hello,

If the file to be processed has many records, rexx is not a good performance choice.

What you want to do is rather simple in cobol as well. . .
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 How to save SYSLOG as text data via P... All Other Mainframe Topics 4
No new posts Store the data for fixed length COBOL Programming 1
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top