My requirement is : How to populate a empty PS/flat file with
ONLY spaces in the first line. You should not use any input
dataset to do this. I'm not sure whether you may use any
utility for this purpose?

Answers were Sorted based on User's Feedback



My requirement is : How to populate a empty PS/flat file with ONLY spaces in the first line. You ..

Answer / walkin

Use a sort step with DISP=SHR and use OUTREC to put SPACES

Is This Answer Correct ?    9 Yes 0 No

My requirement is : How to populate a empty PS/flat file with ONLY spaces in the first line. You ..

Answer / abhijit18in2002

//ABCDEFGX JOB ,'SELCOPY ',
// CLASS=D,
// MSGCLASS=Q,NOTIFY=&SYSUID
//STEP01 EXEC PGM=SELCOPY,REGION=4096K
//STEPLIB DD DSN=SYS3.SELCOPY.LOAD,DISP=SHR
//INP1 DD DSN=BOND.UTIL.SAMP,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
OPTION W=1000
MOVE 80 AT 1 TO 100
WRITE F=INP1 FROM 100
/*

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More JCL Interview Questions

What do you know about jcl?

0 Answers  


Using DELETE what type of file can you delete? a)SEQUENTIAL FILE B)INDEXED FILE C) D) Some options were there..i cant remember

3 Answers   HSBC,


There are 2PROCS in a JCL. I want following conditions to be carried out 1) 1st PROC should be executed as such In second PROC 2) First 4steps should not be executed 3) 5th step should not be executed 4) 6th and 7th step should be executed The change should be done only in the JCL and PROC should be untouched ?

3 Answers   ADP,


what is JCLLIB and PROCLIB in jcl and their syntax

3 Answers   IBM,


when we use sysprint and sysout statements

3 Answers  






How to create delta file using JCL

1 Answers   CTC,


What is S322 abend ?

5 Answers  


When will we need to specify Space parameter ?

3 Answers   Wipro,


01 GROSS-PAY 05 BASIC-PAY PIC 9(5) 05 ALLOWENCES PIC 9(3) if BASIC-PAY has a value 1000 and ALLOWENCES has a value of 250,what will be displayed by the statement DISPLAY GROSS-PAY a.1250 b.01000250 c.01250 d.1.250

1 Answers  


Which is the most widely used batch performance monitor for DB2?

2 Answers  


HOW TO CONVERT VARIABLE BLOCK TO FIXED BLOCK ?

1 Answers   IBM,


What is the purpose of dd dummy statement?

0 Answers  


Categories