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
Explain how can the disposition of sysout datasets be set for an entire jobstream?
write a jcl to execute a job by 7:00 am on jan 20,1986?
define cond parameter in jcl?
in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?
when does a dataset go uncataloged?
WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375
How to pass the parameter in parm using linkage section ? (syntax)?
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?
what are JCLLIB and STEPLIB in JCL?
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?
What is jcl in mainframe, and how many types of jcl statements are there for a job?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
Why include statement is used in a jcl?
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
What is the difference between run mode and addressing mode?