Hi , kindly help me in urgent.
I have an requirement wherein,
1) A input PS file contain date in the format ddmmyyyy.
2) Use date input file and create db2 query in output file. the qry should look like select timestamp('CCYY-MM-DD.01.01.000001') - 1 months from sysibm.sysdummy1;
2) Run the db2 query present in file created in setp1
3) use the output file created in step2 in DB2 reorg application to clean table (Reorg with discard option)
Date conversion from mmddyyyy format to ccyymmdd
-
- Global moderator
- Posts: 3006
- Joined: Fri Apr 18, 2008 11:25 pm
- Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
- Referer: www.ibmmainframes.com
Re: Date conversion from mmddyyyy format to ccyymmdd
thank You for telling us what You have to do...
unfortunately You did not ask any question
You should remember that people answer ...
on their own time
free of charge
based on ...
interest of the question
benevolence factor of the TS
knowledge about the topic being discussed
there is no commitment to give an answer
there should be no expectation to get one
also
claiming urgency will lower Your benevolence factor ( the willingness of people to help )
if You have time constraint a forum is not the best place to ask for help
unfortunately You did not ask any question
Hi , kindly help me in urgent.
You should remember that people answer ...
on their own time
free of charge
based on ...
interest of the question
benevolence factor of the TS
knowledge about the topic being discussed
there is no commitment to give an answer
there should be no expectation to get one
also
claiming urgency will lower Your benevolence factor ( the willingness of people to help )
if You have time constraint a forum is not the best place to ask for help
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: Date conversion from mmddyyyy format to ccyymmdd
Also, what has this to do with JCL? It would appear to be a DB2 question. Moving to DB2. And I am prettry sure that there is a SUBSTR function within DB2 which could help you re-arrange the values as you want.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
-
- Global moderator
- Posts: 3006
- Joined: Fri Apr 18, 2008 11:25 pm
- Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
- Referer: www.ibmmainframes.com
Re: Date conversion from mmddyyyy format to ccyymmdd
apart the mud
looks like there is no need to bother DB2 for step 2 - a simple sort might be enough
looks like there is no need to bother DB2 for step 2 - a simple sort might be enough
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
Re: Date conversion from mmddyyyy format to ccyymmdd
Thanks for the input . im a very beginner so asked and the word urgent , I meant in the context for help .
I was trying to ask any date conversion functions available.
I was trying to ask any date conversion functions available.
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: Date conversion from mmddyyyy format to ccyymmdd
any date conversion functions available
Yes - many but at what point in your process? You are generatinng a query using your own program? Use the facilities provided by the programming language used. Using your sort product? Split the field and rebuild in the correct format when creating the output record - plenty of examples around.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
-
- Global moderator
- Posts: 3006
- Joined: Fri Apr 18, 2008 11:25 pm
- Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
- Referer: www.ibmmainframes.com
Re: Date conversion from mmddyyyy format to ccyymmdd
when the task is to reformat input records , adding/removing fields
it is always wise to post an accurate sample of the input record
and the same for the output records.
it is always wise to post an accurate sample of the input record
and the same for the output records.
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
-
- Similar Topics
- Replies
- Views
- Last post
-
- 3
- 1496
-
by sergeyken
View the latest post
Sun Nov 29, 2020 6:47 am
-
- 7
- 1997
-
by sergeyken
View the latest post
Wed Dec 23, 2020 6:39 pm
-
-
.TXT file conversion to .CSV/.XLSX
by dangtran10 » Thu May 20, 2021 7:09 am » in DFSORT/ICETOOL/ICEGENER - 3
- 1927
-
by steve-myers
View the latest post
Fri May 21, 2021 10:57 pm
-
-
- 3
- 5887
-
by sergeyken
View the latest post
Sat Dec 10, 2022 2:30 am
-
-
Code conversion issue while reading JCL using REXX
by vsgurunath » Fri Jun 19, 2020 10:19 pm » in CLIST & REXX - 11
- 4299
-
by vsgurunath
View the latest post
Thu Jun 25, 2020 4:08 pm
-