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

COPY DATA from one PS to another in the COBOL program


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

New User


Joined: 16 Feb 2007
Posts: 2
Location: Markapur

PostPosted: Thu Oct 01, 2009 8:43 pm
Reply with quote

Hi, I have a requirement to copy data from one PS to another PS by adding a dynamic header and trailer information. my input PS consists of around 200000 records. I hate to read one by one and write to output file just to insert extra header and trailer.

I will really appreciate any suggestion.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Oct 01, 2009 8:51 pm
Reply with quote

PS means "physical sequential", which means you cannot add a header or trailer without reading the entire file and writing it out to another file.

Use plenty of buffers to minimize processing time but expect to read and write every record in the file to achieve your desired result.
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 Replace each space in cobol string wi... COBOL Programming 2
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
Search our Forums:

Back to Top