how to split a file

Answer Posted / shubhanshu sharma

//SORT01 DD DSN = PDS,
DISP = (NEW,CATALOG,DELETE),
DCB = (RECFM = F, LRECL = 80, BLKSIZE = 800),
UNIT = SYSDA,
VOL = WRKA97
SPACE = (CYL,(1,4),RLSE)

//SORTIN DD*
SORTFIELD = COPY,
SKIPREC = 100,
STOPREC = 80.
/*
SKIPREC means how many records we need to skip
STOPAFT means how many records we need to put in the
file.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hello Guys, I have 1+ Year Experience in MAINFRAME TESTING. After 1 Week I have an Interview With a Company on Mainframe Testing. Please Could You Guys Please Suggest me What Sections Should I prepare ?? ___Tell Me the Topic Or Appropriate Site & Links. ?? ---------------Thank You

2375


Explain how can the attributes of one sms dataset be copied to another dataset?

822


Explain how can the disposition of sysout datasets be set for an entire jobstream?

728


How can a fb file convert to vb file using sort program?

921


Explain how can a stopped job be started again?

740






Are there any set of rules for the names of the steps used in a job? What are they?

682


What is the difference between run mode and addressing mode?

725


Is their any limit for data sets?

786


i want to store 20 digits . how will u do it in cobol ?

960


Name what parameter directs the output of the job log dataset?

637


Define concatenating?

754


I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?

2210


Name a few IBM utility programs, and explain its function.

4537


I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?

1455


write a jcl to execute a job by 7:00 am on jan 20,1986?

780