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 the use of JCL?
What is timing concept in mainframe?
what is use of disp parameter in dd statement?
Explain how can the disposition of sysout datasets be set for an entire jobstream?
Explain the purpose of the dd keylen parameter?
Explain about LMFREE�free data set from its association with data ID
write a jcl to execute a job by 7:00 am on jan 20,1986?
I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?
How do you overcome this limitation ?
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?
Where can program checkpoints be stored for use in a restart?
Which statement is used to identify the private libraries in job?
How can the submitting users racf authority be overridden in a job stream?
Can we call instream to catalog and catalog to instream?
How jcl work to handle various input output file operations?