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 / 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 View All Answers
How can return codes be tested before execution of a job step?
how JCL works?
Describe the various parameters utilized in the creation of a gdg?
what is the use of JCL?
how you will the direct the data to spool using sysout option?
Explain how can a jobs execution priority be modified?
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 ?
Explain how can the disposition of sysout datasets be set for an entire jobstream?
have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file
What is the function of job statement in jcl?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
How to pass data to a program that is coded in an exec statement?
What dd statement is used to supply the name of a dataset?
What is the syntax of JCL statement?
what is the resolution for sb37 error