Page 1 of 1
Conversion of CCYY-DD-MM to CCYYDDMM
Posted: Tue Aug 30, 2005 4:46 am
by ashwin141
Hi
I am new to this forum.
Can anbody help me with conversion of CCYY-DD-MM to CCYYDDMM.
I am tring to do this but the 0 of MM is getting truncated.
Please let me know about any soultion for this.
Thanks
Ashwin
Posted: Tue Aug 30, 2005 5:18 am
by dls
Try using a 'date mask' to define each field. DS390 will then generate the necessary COBOL statements to carry out the conversion.
Posted: Tue Aug 30, 2005 9:52 am
by kumar_s
Hi,
can readily use date to string conversion and leter to the required output.
But i couldnt get much information about
DS390 will then generate the necessary COBOL statements to carry out the conversion.
dls can you help me out???
regards
kumar
Posted: Tue Aug 30, 2005 11:06 am
by dls
Please confirm that you're using DS390.
Tell me about your source/target stuctures; e.g., sequential, relational, etc.
Thanks.
Posted: Tue Aug 30, 2005 4:18 pm
by ray.wurlod
I think that Ashwin is using DS/390 and will understand about date masks in mainframe jobs, and that Kumar is not using DS/390 and will not.
Kumar, we're talking something like the date masks you see in parallel jobs (for example "%yyyy-%mm-%dd"). However, they are specified differently in mainframe jobs, because these have to generate COBOL rather than C.
Posted: Tue Aug 30, 2005 9:27 pm
by kumar_s
Yes
I should have observed the job type in the post correctly.....
regards
kumar