I've one sequential file, that file size is LREC=100 (File
contain Records like 1 to 100). Now I was increase the file
size is LREC=102. My question is I want insert 00 (Two
Zeros) in to the new file (That output file looks like :
00123 up to 100). How will write the SORT card in JCL.
Please let me know.

Answer Posted / satish

//sysin dd *
option copy
oufil fnames=(ddname),build=(2c'0',1,100)
/*

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is DD statement is used in JCL?

681


I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.

726


Explain how can the attributes of one sms dataset be copied to another dataset?

703


We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?

1767


Explain the function of the steplib dd statement?

644






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

708


Explain the purpose of dd * statement in jcl?

640


Mention the types of job control statements?

686


why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.

1947


Explain the function of a dd statement?

659


Is it possible to left uncode disp?

711


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

669


What is the significance of addrspc parameter in exec statement?

729


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

737


How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?

1801