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
Explain the function of the steplib dd statement?
What is condition checking in jcl? Is this possible?
How to submit jcl through a cobol program?
What do you understand by the terms: joblib and steplib?
what is a jcl?
Name what parameter directs the output of the job log dataset?
WORKING-STORAGE SECTION. 01 GROSS-PAY. 05 BASIC-PAY PIC 9(5). 05 ALLOWENCES PIC 9(3). PROCEDURE DIVISION. MOVE 1000 TO BASIC-PAY. MOVE 250 TO ALLOWENCES. DISPLAY GROSS-PAY. STOP RUN. 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move
in ways data can be passed to a COBOL program from JCL?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
What dd statement is used to supply the name of a dataset?
what is use of dcb parameter in dd statement?
How jcl work to handle various input output file operations?
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
List the different jcl statements that are not permitted in the procedures?
What do you know about jcl?