Comments are available to members only. Sign up or Log in to view these comments.
Main Topics
Browse All TopicsHello everyone.
I'm a newbie here...so go easy on me. I have the following code in a .cmd file ( sdv.cmd ). I run it from a command prompt like this c:\sdv.cmd >h:\projects\sdv.txt. It runs fine and it does what i want it to except that I want it to prompt for a date so I don't have to hard code the SQL date to a differnet date each day.
How do a set a arg for the date and have it prompt the user to enter a date.
We are using a DB2 database. ( sorry, that's all I know )
/*************************
* THIS WILL EXTRACT DATA *
* *
**************************
'Dbmucmd mydatabase "select',
'c.cust_rt_nbr,',
'a.ord_appv_deliv_dt,',
'a.ord_doc_nbr,',
'd.hhc_descp_txt,',
'd.selling_code,',
'b.ord_orig_item_qty,',
'b.ord_curr_item_qty,',
'b.ship_recv_item_qty,',
'b.ord_item_um_code,',
'd.sdv_amt,',
'e.unit_per_case_qty,',
'e.cdy_per_case_qty,',
'a.acctg_dest_loc_nm',
'from oms.ord_ship_hdr a,',
'oms.ord_ship_ln b,',
'oms.ord_cust_rt c,',
'slp.product_code_attr d,',
'iim.sku e',
'where a.ord_cancl_flg=''0'' and',
'a.ord_delte_flg=''0'' and',
'a.purge_flg=''0'' and',
'c.rt_type=''01'' and',
'a.ord_appv_deliv_dt=''200
'a.ord_doc_nbr=b.ord_doc_n
'a.ord_doc_nbr=c.ord_doc_n
'b.prod_nbr=e.prod_nbr and',
'b.case_seq_nbr=e.case_seq
'b.prod_nbr=d.prod_code and',
'd.PROD_C_ATTR_END_DT>=a.O
' AND A.ORD_TYPE_CODE<>''66'' ',
' AND A.ORD_TYPE_CODE<>''65'' ',
'order by c.cust_rt_nbr,',
'a.ord_appv_deliv_dt,',
'a.ord_doc_nbr,',
'd.selling_code"'
**************************
Thanks a million
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: awehmePosted on 2004-08-30 at 14:37:29ID: 11936344
Comments are available to members only. Sign up or Log in to view these comments.