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
Answer / walkin
Use a sort step with DISP=SHR and use OUTREC to put SPACES
Is This Answer Correct ? | 9 Yes | 0 No |
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 |
Explain about CBL/PROCESS statement syntax
Which dd parameters are required?
Hi Guyz, My requirement is to empty out a PS file but not to delete. How would I do that. Is there any Utility. If any other way, plz answer. Thanks.
9 Answers iGate, Lehman Brothers,
can any one plzzzzzz tell the jcl code for creating ps using idcams
Explain about LMOPEN -
What is the purpose and meaning of the REGION keyword and what JCL statement is it associated with?
wt will happen to the step of a job if u code COND=ONLY
Is condition checking possible in jcl? If yes, how?
If a field is declared as a comp-3 field and if we want to sort a dataset based on this field, then how will the sort card be??? e.g- if we want to sort by a field which is defined as a PIC X(5) then we will mention - sort fields=(1,5,ch,a). Likewise if a field is defined as PIC S9(10)COMP-3 then in this case how will the sort field be defined (because in this case a sign is also involved)???
is there any possibilities for sumbitting more than one job in single jcl? if yes...based on which thing they will execute..(priority,class,time,written order..?)
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
How can unused space allocation be returned to the system when a dataset is closed?