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
 
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 Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts Spool Extract for Z /os 1.04 version Khadhar Basha CLIST & REXX 3 Thu Sep 28, 2017 3:14 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts Extract Data till prev hour balaji81_k DB2 16 Fri Aug 25, 2017 9:25 pm

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