a input file contains 1000 records, how to move the first
500 record into one out put file and how to move to second
500 records to anothere output file
Answer Posted / nishant
using IDCAMS utility
//sysin DD*
REPRO -
INFILE(DD1) -
OUTFILE(DD2) -
COUNT(500) COPYING FIRST 500 RECORDS
SKIP(500)
REPRO -
INFILE(DD1) -
OUTFILE(DD3) -
skip(500) -
COUNT(500) COPYING NEXT 500 RECORDS
/*
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How to submit a jcl from cics?
What are s0c1, s0c4, s0c5, s0c7 and socb?
how would you create a temporary dataset? And where will you use them?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
what are the various stages of job processing?
Explain the function of dd disp parameter?
Mention the types of job control statements?
Immediate Job opening for mainframe professionals in Keane Bangalore. Please find the below details: Organization: Keane India Location: Bangalore Skill: COBOL, JCL,VSAM,DB2,CICS,IMS,REXX,CLIST Exp: 1 to 4 years only Employment Type: Permenant Employee Note: If you have attended keane interview in past 6 months please ignore this job opening. Please respond to email id keanemfjob@gmail.com OR keanemfjob@yahoo.in with your latest resume and following details, We will contact you within 24 hours: Total IT Exp: Exp in Mainframe: Current CTC: Expected CTC: Notice Period:
State the uses of syspring, sysin, sort fields, sum fields and dummy.
what is use of disp parameter in dd statement?
What is the maximum length of a single line of jcl?
What is the function of //cntl statement?
In job processing, what happens in execution stage?
which parameter is use to declare the name of dataset in dd statement?
What is the function of the dd dcb keyword?