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
Answer Posted / 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 View All Answers
what is “Cond= even” and “Cond=only”?
What are the utility programs in jcl?
How can an in-stream dataset be terminated?
what is the use of JCL?
How do you access an uncatalogued dataset in a jcl?
What is the function of the steplib dd statement?
What happens if both JOBLIB & STEPLIB is specified ?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
How can the submitting users racf authority be overridden in a job stream?
Explain the purpose of the dd keylen parameter?
What are some jcl statements that are not allowed in procedures?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
How can unused space allocation be returned to the system when a dataset is closed?
Mention the types of job control statements?
what sort card you will use to copy the data from one dataset to another dataset?