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

what happens if job falls in loop ? how to resolve it ?

3 Answers   Patni,


what does mvs stand for?

1 Answers   IBM,


hi in one of the interview one asked me how to submit a job from cobol?as well as how to submit a jcl from CICS? can u pls any one tell me..

1 Answers   CTS,


Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE

0 Answers  


What are s0c1, s0c4, s0c5, s0c7 and socb?

0 Answers  


how can the same proc be re-used and called by many jobs?

0 Answers   IBM,


Explain about User Information

1 Answers  


Can we find specific member without knowing the name of PDS or can we search a member to which PDS it belongs to? if so how?

6 Answers  


Describe the EXEC statement, its meaning, syntax and keywords?

2 Answers  


How to find in aparticular step how many versions a paricular gdg base have?

4 Answers   TCS,


how do you access an uncataloged dataset in a jcl?

0 Answers   IBM,


what is the alternative to model parameter?

0 Answers  


Categories