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 is the maximum length of a single line of jcl?

0 Answers  


What is a Dummy Utility and what it does ?

3 Answers  


Suppose there r total 10 steps. Out of which i want to execute only the 7th step. How can i do that....????

3 Answers  


What is JOBLIB ?

5 Answers   Xansa,


How does jcl act on code(if you take a cobol program)?

0 Answers  






I have two input files i/p1 name id-key flag date i/p 2 name id-key date if id-key matches in the both the files then it should write the output file from i/p1 with flag 'Y'. It should be done thru JCL sort card ,Please provide the info on this. ---Note : output file should have all records from i/p1 with proper Flag.

2 Answers  


How to release a JOB (from the input queue) held by TYPRUN = HOLD ? and how to see the installation default time after which a JOB will be automatically released ? How to see the list of currently HELD JOBS ?

5 Answers   IBM,


i want to store 20 digits . how will u do it in cobol ?

0 Answers  


How does the jcl specify the job to os?

0 Answers  


We have an output dataset in job with disp parameter as SHR. Can we write data in that file dataset?

2 Answers   CTS, IBM,


List the different jcl statements that are not permitted in the procedures?

0 Answers  


What are three parameters you can specify on Job statement as well as on exec stmt ?

1 Answers  


Categories