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

Reducing the length of the data file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jose.jeyan

New User


Joined: 28 Jul 2006
Posts: 60
Location: Mumbai

PostPosted: Wed Mar 12, 2008 8:18 pm
Reply with quote

hi all
pls help me in achieving this.

My file contains 6 records
Input file :
*********
1234567890
1234567890
1234567890
1234567890
1234567890
1234567890

the length of file is 10 . I want to cut short the file from 10 to 8.

my output file must be like

output file :
**********
12345670
12345670
12345670
12345670
12345670
12345670

here u can see that the records in position 8 & 9 has been omiited and the rest of the records have been received in the output file.

Tony
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Wed Mar 12, 2008 8:32 pm
Reply with quote

Is this Okay?

Code:
//SYSIN     DD *               
   SORT FIELDS=COPY             
   INREC FIELDS=(1:1,7,8:10,1) 
/*   
Back to top
View user's profile Send private message
jose.jeyan

New User


Joined: 28 Jul 2006
Posts: 60
Location: Mumbai

PostPosted: Wed Mar 12, 2008 10:49 pm
Reply with quote

yeah thanks that works fine

Thanks a lot...

Tony
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top