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
 

 

Extract and justify delimited fields

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
vvmanyam

New User


Joined: 16 Apr 2008
Posts: 86
Location: Bangalore

PostPosted: Fri Oct 17, 2008 11:01 am    Post subject: Extract and justify delimited fields
Reply with quote

Hi,
I have a requrement to extract the varying length fields in a delimited file in to fixed width delimited file.
I have seen an example in Smart DFSORT Tricks document but It is sloved by Using 'PARSE' but My DFSORT version is not updated version, So, it does n't have this functionality.
So, Can any one give me the solution with out using PARSE function.

First 7 bytes is key and each value will be max of 7 bytes.
Total no of fields excluding key are 5

Sample Input:
Code:

US12444;25;8965;9393;135;9038;
US12448;259;965;933923;13535;9038;


Output:
Code:

US12444;0000025;0008965;0009393;0000135;0009038;
US12448;0000259;0000965;0933923;0013535;0009089;



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

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Fri Oct 17, 2008 10:54 pm    Post subject:
Reply with quote

DFSORT has had PARSE available since April, 2006 so your site is way behind in service. Ask your System Programmer to install z/OS DFSORT V1R5 PTF UK90013 (for any z/OS release from 1.5 through 1.9). That will get you completely up-to-date on DFSORT functions.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 5 Sat Jan 21, 2017 4:02 am
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 2 Sun Nov 06, 2016 8:11 pm
No new posts Access SQLCA fields inside a stored p... gangapd DB2 4 Thu Oct 27, 2016 10:20 am
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm


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