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 / mfgan

When DD-MM-YYYY is the first field of input record,
Then use the below code,

//SYSIN DD *
SORT FIELDS=COPY
OUTREC FIELDS=(1:1,2,
3:C'/',
4:4,2,
6:C'/',
7:7,4)
/*
//
When others,
Change the position numbers occordingly.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does the jcl specify the job to os?

692


What is job control language?

609


Explain the purpose of dd * statement in jcl?

640


what are JCLLIB and STEPLIB in JCL?

674


a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?

618






How to pass data to a program that is coded in an exec statement?

821


List the various advantages of using jcl language?

852


can any one plzzzzzz tell the jcl code for creating ps using idcams

10511


Differentiate between the joblib and the steplib statements?

855


Is it possible to define dd statements as you want?

644


Matching Logic in Jcl not in cobol.Could any one please answer this question

3669


How jcl work to handle various input output file operations?

656


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

829


Explain how can the submitting users racf authority be overridden in a job stream?

671


What do you understand by jcl?

625