i have a ps with two columns eno and ename , i need to copy
eno column values in one ps and ename column values in one
Ps ? is it possible through iebgener . how ? thx in advance



i have a ps with two columns eno and ename , i need to copy eno column values in one ps and ename ..

Answer / krishna

//job card
//step1 exec pgm=IEBGENER
//SYSUT1 DD DSN=SOURSE, DISP= SHR
//SYSUT2 DD DSN=ENODATASET , DISP=SHR
//SYSIN DD *
PRINT MAXFLDS=1
RECORD FIELD=("ENO COL LENGHT", 1, , 1)
//STEP2 EXEC PGM=IEBGENER
//SYSUT1 DD DSN=SORSES, DISP=SHR
//SYSUT2 DD DSN=ENAMEDATASET, DISP=SHR
//SYSIN DD *
PRINT MAXFLDS=1
RECORD FIELD=(ENAME LEGTH,STARIN POS, , 1)

Is This Answer Correct ?    14 Yes 0 No

Post New Answer

More JCL Interview Questions

Can we Execute a job without specifying Job Name in the Job Card?

2 Answers  


What is the parameter to be passed in the job card for the unlimited time , irrespective of the job class ?

2 Answers   IBM,


hi iam learning mainframes,can anybody tell me how to check JCL errors.(after submiting the JCL we have check in spool or is there any other method)

8 Answers  


How can u know the current date using jcl?

2 Answers   iNautix, Wipro,


How do you create a temporary dataset?

0 Answers  






what will be the error code if duplicate key of VSAM file is found?

1 Answers   HSBC, Kings,


what is static and dynamic call with examples?

4 Answers   IBM,


what is JCL?

0 Answers  


wht do u mean by inrec and outrec ?

1 Answers   IBM,


restart logic ?

2 Answers   TCS,


If a job has 3 steps and step 1 and step 3 should get executed and step 2 should not get executed irrespective of the return code from the previous steps. How can it be done?

5 Answers   TCS,


How to fetch even records from one file to another file by using ICETOOL in JCL?

3 Answers  


Categories