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
 

 

split a variable record length file into two or more files

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
sri.mainframes

New User


Joined: 16 Feb 2006
Posts: 29
Location: MUMBAI

PostPosted: Tue Jun 27, 2006 6:39 pm    Post subject: split a variable record length file into two or more files
Reply with quote

A file having 10000 variable length records consisting of 100 lrecl, 200 lrecl, 300 lrecl. Now i wanted to copy 100 lrecl into a file , 200 lrecl into another file. can anyone suggest the possible cases to solve this problem
by using cobol and as well as jcl.


regards,
Prince.Sri
Back to top
View user's profile Send private message

guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Wed Jun 28, 2006 5:00 pm    Post subject:
Reply with quote

Prince,

You just check the first 4 byte value it will give you the length & put the simple evaluate stmt to write it to different o/p file.

01 file-rec.
05 file-length pic s9(4) comp.
05 file-field pic x(1000).

Procedure division.

Evaluate file-length
when 100
write file-a
when 200
write file-b
....

End-evaluate.

Hope it will helpful
Back to top
View user's profile Send private message
dipanshu

New User


Joined: 16 Jan 2006
Posts: 53
Location: pune

PostPosted: Fri Jun 30, 2006 11:47 am    Post subject:
Reply with quote

Is the above problem can be solve by JCL?
Back to top
View user's profile Send private message
Hanfur

Active User


Joined: 21 Jun 2006
Posts: 104

PostPosted: Tue Jul 04, 2006 1:19 pm    Post subject: Hi
Reply with quote

Hey,

Post this topic in IBM SORT /ICETOOL section;if u want a solution thru JCL..

-Han
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm


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