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: Extract by delimiter and convert in one pass?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SYNCSORT
View previous topic :: :: View next topic  
Author Message
Ben Drew

New User


Joined: 31 Oct 2013
Posts: 1
Location: USA

PostPosted: Thu Oct 31, 2013 6:51 pm    Post subject: Syncsort: Extract by delimiter and convert in one pass?
Reply with quote

I have a comma-delimited file that looks like this:

Code:

----+----1----+----2
99.1,4/24/88
7,12/15/02
33,6/3/92
100.5,12/1/01

I know how to parse by comma, right justify and get it to look like this:
Code:

----+----1----+----2
 99.1  4/24/88
    7 12/15/02
   33   6/3/92
100.5  12/1/01

But what would be even better would be if I could get it to look like this:
Code:

----+----1----+----2
 99.1 1988-04-24
  7.0 2002-12-15
 33.0 1992-06-03
100.5 1992-12-01

I've tried a number of things editing/reformatting subparameters, but apparently either I'm not doing it correctly, or they're not proper subcommands of the Parse or Build parameters.

Any ideas on whether this can be done in one pass???
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Thu Oct 31, 2013 6:57 pm    Post subject: Reply to: Syncsort: Extract by delimiter and convert in one
Reply with quote

Yes. Not as part of PARSE, but you can specify multiple IFTHEN statements. You want to look at EDIT masks for fields, and look at date conversion functions.

There are examples here, I'm sure. Your favourite search engine will pick up more. You have a manual? Look up the functions, and do a search, you'll get examples.

If you get stuck, show what you tried, with sample input, expected output and what you got.
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 -> SYNCSORT 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 6 Thu Nov 23, 2017 3:32 pm
No new posts Can EDCICONV convert EBCDIC to ASCII... natt.sut IBM Tools 3 Fri Nov 17, 2017 8:46 pm
No new posts Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm
This topic is locked: you cannot edit posts or make replies. Need help how to pass the ESP variabl... Venkichaitu JCL & VSAM 12 Thu Nov 02, 2017 3:53 am
No new posts How to Extract BMS Marco Source from ... Howard Hinman CICS 5 Tue Oct 31, 2017 11:13 pm

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