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

Extract and justify delimited fields


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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 Developer


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

PostPosted: Fri Oct 17, 2008 10:54 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
No new posts optim extract file - SAS DB2 2
No new posts How to extract the data for current y... DFSORT/ICETOOL 8
No new posts Extract record using 2 input file int... JCL & VSAM 2
Search our Forums:

Back to Top