I have DATE filed like DD-MM-YYYY, So I want output should be
MM/DD/YYYY using JCL?

Can anybody post the answer for above requirement?

Answer Posted / harsha

12345678910
DD-MM-YYYY
Above is the date and column numbers.

//STEP1 EXEC PGM=SORT
// .
// .
// .
OPTION COPY
OUTFILE FNAMES=SORTOUT
OUTREC=(4,2,C'/',1,2,C'/',7,4)

Is This Answer Correct ?    14 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can a stopped job be started again?

707


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

921


How does the jcl specify the job to os?

686


How to do automated restart when a job abend?

787


What is the function of the steplib dd statement?

736






What is the maximum length of a single line of jcl?

825


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 ?

938


What are the utility programs in jcl?

646


What are some jcl statements that are not allowed in procedures?

722


which utility is used to run a cobol-db2 program?

801


What is the format of comment statement?

662


How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?

2163


List the different components of jcl statement?

687


what is a jcl?

685


I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?

1343