how to write a jcl prog to copy alternate recs from ps1 to
another ps2,suppose ps1 having 10 recs?

Answer Posted / mahesh

//step1 exec pgm=iebgener
//sysut1 dd dsn=fss149.mahesh.ps1,disp=(shr)
//sysut2 dd dsn=fss149.mahesh.ps2,disp=shr

Is This Answer Correct ?    2 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.

5061


I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?

829


what is JCL?

698


how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?

784


Explain the function of the dd dcb keyword?

706






I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?

703


what is the purpose of coding notify parameter in job statement?

683


what are the types of abends that occur on job failure? And explain the possible causes of these

1118


a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?

619


How can a jobs execution priority be modified?

796


Explain the function of the steplib dd statement?

645


What dd statement is used to supply the name of a dataset?

775


Explain the job statement in jcl?

653


What is the purpose of dd?

728


I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.

1952