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
 

 

How to copy data with delimters to fixed length file

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

New User


Joined: 03 Dec 2007
Posts: 39
Location: United States

PostPosted: Wed Feb 24, 2016 10:03 pm    Post subject: How to copy data with delimters to fixed length file
Reply with quote

Hi,

I would like to copy data from input file that contains data with delimiters to a another file which should have fixed field lengths

Example :
i/p file :
Record 1 - 121000248;AMERI522;
Record 2 - 1210002483;AMERI5223;

o/p File :

Record 1 - 121000248 AMERI522
Record 2 - 1210002483 AMERI5223

I mean the first field length should be 12 - fixed (121000248 or 1210002483)
second field length should be 15 - fixed( AMERI522 or AMERI5223)

Please advise if we can achieve this thru a simple sort

Appreciate your help

Venkat
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Wed Feb 24, 2016 10:09 pm    Post subject: Reply to: How to copy data with delimters to fixed length file
Reply with quote

search the forum for examples of the PARSE keyword
Back to top
View user's profile Send private message
Venkata Ramayya

New User


Joined: 03 Dec 2007
Posts: 39
Location: United States

PostPosted: Wed Feb 24, 2016 11:05 pm    Post subject:
Reply with quote

It worked. Great Help! Thanks enrico-sorichetti
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: copy lines after the keyword shreya19 SYNCSORT 1 Fri Dec 02, 2016 9:47 am
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm


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