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?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
Answer / pranay
OUTREC FIELDS=(4,2,C'/',1,2,C'/',7,4)
The above Sort card is working perfectly fine for me.
Please recheck.
| Is This Answer Correct ? | 2 Yes | 0 No |
When I am using
//SYSIN DD *
SORT FIELDS=COPY
OUTREC FIELDS=(4,2,C'/',1,2,C'/',7,4)
/*
//
I am getting the same output as input!
Can someone please through some light on it.
| Is This Answer Correct ? | 1 Yes | 1 No |
Can we find specific member without knowing the name of PDS or can we search a member to which PDS it belongs to? if so how?
Do we need to code DCB parameters when using DISP position as MOD?
in a series of 10 steps, i need to run only 1,3,5,7 & 9th steps only. how do u code?
When we use conditional statement in JCL using if-then-else-endif, IF statement is true, the step is bypassed or executed?
How do you submit a JCL under CICS environment ?
How to find the length of variable length copybook using fileaid ??
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
How to change default PROCLIB?
How to release the Output HELD by using HOLD = YES on DD statement ?
What are the rules employed while naming the steps in a job?
how to compress the data set
What are the keywords associated with DCB? How can you specify DCB information? What is the OS precedence for obtaining that DCB information, ie. where does the system look for it first?