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
 
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: 2285
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 Extract record for change in combinat... Trinadh DFSORT/ICETOOL 5 Thu Nov 23, 2017 3:32 pm
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm
No new posts Updating data from one file to other!!! Vignesh Sid SYNCSORT 1 Mon Nov 06, 2017 2:42 pm
This topic is locked: you cannot edit posts or make replies. Can a alphanumeric data be moved to a... nico_neoz COBOL Programming 10 Mon Oct 30, 2017 8:28 am

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