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?

Answer Posted / walkin

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

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 4 fields in dd statement?

821


how to do automated restart when a job abends?

958


What is notcat 2 - gs?

1056


What is the difference between the positional and keyword parameters? Give examples.

807


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

843






what sort card you will use to copy the data from one dataset to another dataset?

836


what is the use of JCL?

763


In sms datasets, what is the function of the dd mgmtclas keyword?

976


The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?

1063


if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?

1787


How can values be passed from the job stream to an executable program?

961


What is multithreading in jcl?

1038


Can an individual step be restricted from using all the jobs allowed cpu time?

1125


My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.

2089


Explain about LMFREE�free data set from its association with data ID

1116