ihave ten flatfile in that iwant to concatinate all the
files except file 5,6 into output file by uing jcl?
how to do this? give me detail yntax for tis?

Answer Posted / harsha

In addition to the above provided solutions, if user is
concatenating these files in a PROC then user can provide
the overriding parameter in JCL as
//STEP1 EXEC PROC1
//STEPA.DD1 DD DSN=DSN1,DISP=SHR
// DD DSN=DSN2,DISP=SHR
// DD DSN=DSN3,DISP=SHR
// DD DSN=DSN4,DISP=SHR
// DD DSN=DSN7,DISP=SHR
// DD DSN=DSN8,DISP=SHR
// DD DSN=DSN9,DISP=SHR
// DD DSN=DSN10,DISP=SHR

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where can program checkpoints be stored for use in a restart?

840


I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.

726


Is acct parameter mandatory?

758


which utility is used to sort a file in jcl?

745


Brief description of inline procedure of jcl.

680






what is DSN parameter and DISP parameter is used for?

672


My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.

1982


Can an individual step be restricted from using all the jobs allowed cpu time?

1005


List the different jcl statements that are not permitted in the procedures?

634


What is the use of disp parameter?

647


A dd statement consists of 4 fields. Name them?

920


Why block size is multiple of lrecl in jcl?

908


Explain how can values be passed from the job stream to an executable program?

613


Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?

668


Is automatic restart possible in jcl? If yes, how?

653