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
 

 

SYNCSORT data between delimiters

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

New User


Joined: 22 Nov 2005
Posts: 23

PostPosted: Wed Dec 17, 2008 4:36 pm    Post subject: SYNCSORT data between delimiters
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: 2180
Location: @my desk

PostPosted: Wed Dec 17, 2008 9:58 pm    Post subject:
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

Site Director


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

PostPosted: Wed Dec 17, 2008 11:17 pm    Post subject:
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    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 Sorting group data rajella DFSORT/ICETOOL 1 Sun Jan 22, 2017 11:32 pm
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 5 Sat Jan 21, 2017 4:02 am
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am


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