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

Explain about CBL/PROCESS statement syntax

1 Answers  


Which dd parameters are required?

0 Answers  


Hi Guyz, My requirement is to empty out a PS file but not to delete. How would I do that. Is there any Utility. If any other way, plz answer. Thanks.

9 Answers   iGate, Lehman Brothers,


can any one plzzzzzz tell the jcl code for creating ps using idcams

2 Answers   Fiserv,


Explain about LMOPEN -

1 Answers  






What is the purpose and meaning of the REGION keyword and what JCL statement is it associated with?

3 Answers   IBM,


wt will happen to the step of a job if u code COND=ONLY

5 Answers   ADP,


Is condition checking possible in jcl? If yes, how?

0 Answers  


If a field is declared as a comp-3 field and if we want to sort a dataset based on this field, then how will the sort card be??? e.g- if we want to sort by a field which is defined as a PIC X(5) then we will mention - sort fields=(1,5,ch,a). Likewise if a field is defined as PIC S9(10)COMP-3 then in this case how will the sort field be defined (because in this case a sign is also involved)???

8 Answers  


is there any possibilities for sumbitting more than one job in single jcl? if yes...based on which thing they will execute..(priority,class,time,written order..?)

3 Answers   HSBC,


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

0 Answers  


How can unused space allocation be returned to the system when a dataset is closed?

0 Answers  


Categories