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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm


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