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
What is condition checking in jcl? Is this possible?
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?
Must tape dataset definitions include vol=ser specifications?
What is the function of the dd dcb keyword?
what is the purpose of coding notify parameter in job statement?
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) ?
Explain how can the submitting users racf authority be overridden in a job stream?
Give the syntax of job specifying jcl statement.
what JCL Procedures?
Name a few IBM utility programs, and explain its function.
In job processing, what happens in conversion stage?
what is the compile process of cobol program expalin with code
When output dataset space is required, what quantity categories are used?
when can a job time-out occur? How to overcome that?
what are the types of abends that occur on job failure? And explain the possible causes of these