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
For what purpose steplib and joblib are used ?
how you can access an uncataloged dataset in a JCL?
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?
How is the record format of an output dataset specified?
What is catelog procedure and how many catelog procedure to use in one job?
What are steplib and joblib? What for they are used?
Explain the job statement in jcl?
write a jcl to execute a job by 7:00 am on jan 20,1986?
What is timing concept in mainframe?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
How can a jobs execution priority be modified?
In sms datasets, what is the function of the dd mgmtclas keyword?
How does the jcl specify the job to os?
Does jcl support automatic restart?
1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat