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

Copy from Variable block file to another variable block file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shanudarling
Warnings : 1

New User


Joined: 20 Dec 2006
Posts: 55
Location: noida

PostPosted: Fri Jul 12, 2013 5:04 am
Reply with quote

Hi,

I have 2 variable block file -
File1 - length 300 bytes (actual length 304)
File2 - length 200 bytes (actual length 204)

File1 contains data and my task is to copy data from File1 to File2 and I need to copy only the first 174 bytes from each record.

Currently I am using SSGENER utility for copying the data but this copies 200 bytes from File1 to File2.

I am looking for something where I can specify that only the first 174 bytes need to be copied.

Thanks
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Jul 12, 2013 5:10 am
Reply with quote

Code:
  OPTION COPY
  INREC BUILD=(1,4,5,174)


Toss that into your SORT product, check. Amend if you have not accurately described the 174 thing.[/code]
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 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
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top