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 are hierarchy levels in jcl?

0 Answers  


What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?

0 Answers  


whats SOC7?

1 Answers   Patni,


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??

14 Answers   L&T,


in production region 100 steps are running,but i need to run only step5 without changing code how can i do it?

4 Answers   HCL,






How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you

0 Answers  


What is the difference between these two parameters? -> accounting information -> class how would it bring the differrence to a program?

4 Answers  


Does the terms, JOBLOG, SPOOL and SYSOUT indicate the same thing, i.e., where JCL and JES messages and statements are written ?

2 Answers  


While using SORT FILES =NONE,XSUM I am getting error "ICE172A E XSUM IS NOT SUPPORTED - USE ICETOOL SELECT IF APPROPRIATE"..I want to write duplicate records a a serparte file..how i can do tht?

3 Answers   Steria,


wht is the d/f between positional parameter n keyword parameter ?

1 Answers  


how JCL works?

0 Answers  


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

0 Answers  


Categories