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 do you understand by the term job time – out and how can you overcome that?
whats the diff bw the evaluate also and and?
what is the purpose of coding class parameter in job statement?
How to pass data to a program that is coded in an exec statement?
what is a jcl?
How can the submitting users racf authority be overridden in a job stream?
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.
How can a jobs execution priority be modified?
How can return codes be tested before execution of a job step?
what are the statements that are not valid to be included in an include statement?
Explain dd statement in jcl?
Give the syntax of job specifying jcl statement.
How to execute 2nd and 4th steps among 5 steps in jcl proc?
Name a few IBM utility programs, and explain its function.
What parameter directs the output of the job log dataset?