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

Deleting some character in a line


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sathish1760

New User


Joined: 02 May 2008
Posts: 42
Location: chennai

PostPosted: Wed Mar 04, 2009 2:30 pm
Reply with quote

Hi,

Is it possible to delete some contents of a line?

For example,

INPUT:(in VB)

RAMKUMAR
SATHISHKUMAR
RAGHURAMAN

I want to delete the 3-5 characters of every line.

so OUTPUT:

RAMAR
SASHKUMAR
RARAMAN

Sathish
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Wed Mar 04, 2009 9:35 pm
Reply with quote

satish1760,

use the following control cards

Code:

//SYSIN    DD *         
  SORT FIELDS=COPY       
  OUTFIL BUILD=(1,6,10) 
/*
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 Write line by line from two files DFSORT/ICETOOL 7
No new posts Deleting a Tape file JCL & VSAM 14
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
No new posts rewrite same SAY line CLIST & REXX 8
No new posts CA7 deleting files in steps after job... CA Products 4
Search our Forums:

Back to Top