prasad


{ City } chittoor
< Country > india
* Profession * software engineer
User No # 122302
Total Questions Posted # 2
Total Answers Posted # 4

Total Answers Posted for My Questions # 1
Total Views for My Questions # 2318

Users Marked my Answers as Correct # 2
Users Marked my Answers as Wrong # 0
Questions / { prasad }
Questions Answers Category Views Company eMail

i have 10,000 records in one input file i want to sort 1 to 5000 records in one out file and remaining records sort in another out file file write syntax?

1 Software 1345

by using cond parameter maximum 8 cond can be coded in single cond means ?explain

JCL 973




Answers / { prasad }

Question { L&T, 22698 }

i have 1000 records in input file and i want to sort it and
the first 200 records to be placed in output file. how to
do that??


Answer

sort fields=copy
outfil files=1,startrec=1,endrec=200

Is This Answer Correct ?    0 Yes 0 No

Question { 4453 }

hi,i have joined in mainframe course recently. ihave a doubt
ragarding restart parameter.what is d use of it. and what is
d syntax for it. any one give me d answer pls.


Answer

it is used to start execution from particular step.
RESTART=STEPNAME
and we write in job card

Is This Answer Correct ?    0 Yes 0 No


Question { L&T, 10440 }

How to identify in JCL that an input file is empty without
reading it?


Answer

//job331ab job notify=&sysuid
//step1 exec pgm=idcams
//sysprint dd sysout=*
//input dd dsn=job331ab.prasad.infile,disp=shr
//sysin dd*
print infile(input)count(1)
/*
if return code rc=00 then it is not empty file,
return code rc=04 then it is empty

Is This Answer Correct ?    1 Yes 0 No

Question { 1345 }

i have 10,000 records in one input file i want to sort 1 to 5000 records in one out file and remaining records sort in another out file file write syntax?


Answer

My Answer,
//sort fields=copy
outfil files=1,startrec=1,endrec=5000
outfil files=2,startrec=5001,endrec=10000
/*

Is This Answer Correct ?    1 Yes 0 No