{"id":860,"date":"2015-05-23T22:41:40","date_gmt":"2015-05-23T20:41:40","guid":{"rendered":"http:\/\/www.netexpertise.eu\/en\/?p=860"},"modified":"2021-10-13T21:47:43","modified_gmt":"2021-10-13T19:47:43","slug":"as400-printing-windows-printer-share","status":"publish","type":"post","link":"http:\/\/www.netexpertise.eu\/en\/systems\/as400\/as400-printing-windows-printer-share.html","title":{"rendered":"AS400 Printing to a Windows Printer Share"},"content":{"rendered":"\n<p><a href=\"\/en\/tag\/ibm-i\">IBM i<\/a> can communicate with a Windows printer share using the LDP Unix protocol. This is so much better than a Client Access printer session since it relies on a simple share and a Windows service. There is no need to start a session manually.<br><br><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">On Windows<\/h3>\n\n\n\n<p>On the Windows server, open server manager, add the Print Server role and make sure to select <a href=\"https:\/\/en.wikipedia.org\/wiki\/Line_Printer_Daemon_protocol\">LPD<\/a> Service. The service should be up and running after reboot.<br><br><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"\/images\/LPD_2008.png\" alt=\"LPD Service on Windows\"\/><\/figure><\/div>\n\n\n\n<p><br>Once this is done, add a printer, install the correct drivers and create a share from the printer properties. Make sure the test page is printing correctly.<br><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">On AS400<\/h3>\n\n\n\n<p>IBM recommend to create a remote OUTQ but this is not ideal for some applications that need a print device.<br>I will then go for a virtual printer coupled with a remote OUTQ. This is a 2 steps matter.<br><br>Create a virtual printer device:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"vim\" class=\"language-vim\">CRTDEVPRT DEVD(MYPRINTER) DEVCLS(*VRT) TYPE(3812) MODEL(1) ONLINE(*NO) FONT(11)<\/code><\/pre>\n\n\n\n<p>Set the proper settings to the matching OUTQ:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"vim\" class=\"language-vim\">CHGOUTQ OUTQ(QUSRSYS\/MYPRINTER) RMTSYS(*INTNETADR) RMTPRTQ('share')\nAUTOSTRWTR(1) CNNTYPE(*IP) DESTTYPE(*OTHER) TRANSFORM(*YES) \nMFRTYPMDL(*WSCST) WSCST(QSYS\/QWPDEFAULT) INTNETADR('XXX.XXX.XXX.XXX')<\/code><\/pre>\n\n\n\n<p><br>Windows printer share can be a solution if your printer is not supported on AS400\/IBM i and you have Windows drivers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>IBM i can communicate with a Windows printer share using the LDP Unix protocol. This is so much better than a Client Access printer session since it relies on a simple share and a Windows service. There is no need to start a session manually. On Windows On the Windows server, open server manager, add [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[210],"tags":[396,405,230,379,391],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Netexpertise - AS400 Printing to a Windows Printer Share<\/title>\n<meta name=\"description\" content=\"Print from AS400 to any printer that has Windows drivers with Windows printer share and LPD protocol in two steps\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.netexpertise.eu\/en\/systems\/as400\/as400-printing-windows-printer-share.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Netexpertise - AS400 Printing to a Windows Printer Share\" \/>\n<meta property=\"og:description\" content=\"Print from AS400 to any printer that has Windows drivers with Windows printer share and LPD protocol in two steps\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.netexpertise.eu\/en\/systems\/as400\/as400-printing-windows-printer-share.html\" \/>\n<meta property=\"og:site_name\" content=\"Netexpertise\" \/>\n<meta property=\"article:published_time\" content=\"2015-05-23T20:41:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-13T19:47:43+00:00\" \/>\n<meta name=\"author\" content=\"dave\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@netexpertise\" \/>\n<meta name=\"twitter:site\" content=\"@netexpertise\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.netexpertise.eu\/en\/systems\/as400\/as400-printing-windows-printer-share.html\",\"url\":\"https:\/\/www.netexpertise.eu\/en\/systems\/as400\/as400-printing-windows-printer-share.html\",\"name\":\"Netexpertise - AS400 Printing to a Windows Printer Share\",\"isPartOf\":{\"@id\":\"https:\/\/www.netexpertise.eu\/en\/#website\"},\"datePublished\":\"2015-05-23T20:41:40+00:00\",\"dateModified\":\"2021-10-13T19:47:43+00:00\",\"author\":{\"@id\":\"https:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa\"},\"description\":\"Print from AS400 to any printer that has Windows drivers with Windows printer share and LPD protocol in two steps\",\"breadcrumb\":{\"@id\":\"https:\/\/www.netexpertise.eu\/en\/systems\/as400\/as400-printing-windows-printer-share.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.netexpertise.eu\/en\/systems\/as400\/as400-printing-windows-printer-share.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.netexpertise.eu\/en\/systems\/as400\/as400-printing-windows-printer-share.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.netexpertise.eu\/en\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AS400 Printing to a Windows Printer Share\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.netexpertise.eu\/en\/#website\",\"url\":\"https:\/\/www.netexpertise.eu\/en\/\",\"name\":\"Netexpertise\",\"description\":\"Systems \/ Networks \/ DevOps\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.netexpertise.eu\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa\",\"name\":\"dave\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g\",\"caption\":\"dave\"},\"sameAs\":[\"http:\/\/www.netexpertise.eu\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Netexpertise - AS400 Printing to a Windows Printer Share","description":"Print from AS400 to any printer that has Windows drivers with Windows printer share and LPD protocol in two steps","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.netexpertise.eu\/en\/systems\/as400\/as400-printing-windows-printer-share.html","og_locale":"en_US","og_type":"article","og_title":"Netexpertise - AS400 Printing to a Windows Printer Share","og_description":"Print from AS400 to any printer that has Windows drivers with Windows printer share and LPD protocol in two steps","og_url":"https:\/\/www.netexpertise.eu\/en\/systems\/as400\/as400-printing-windows-printer-share.html","og_site_name":"Netexpertise","article_published_time":"2015-05-23T20:41:40+00:00","article_modified_time":"2021-10-13T19:47:43+00:00","author":"dave","twitter_card":"summary_large_image","twitter_creator":"@netexpertise","twitter_site":"@netexpertise","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.netexpertise.eu\/en\/systems\/as400\/as400-printing-windows-printer-share.html","url":"https:\/\/www.netexpertise.eu\/en\/systems\/as400\/as400-printing-windows-printer-share.html","name":"Netexpertise - AS400 Printing to a Windows Printer Share","isPartOf":{"@id":"https:\/\/www.netexpertise.eu\/en\/#website"},"datePublished":"2015-05-23T20:41:40+00:00","dateModified":"2021-10-13T19:47:43+00:00","author":{"@id":"https:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa"},"description":"Print from AS400 to any printer that has Windows drivers with Windows printer share and LPD protocol in two steps","breadcrumb":{"@id":"https:\/\/www.netexpertise.eu\/en\/systems\/as400\/as400-printing-windows-printer-share.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.netexpertise.eu\/en\/systems\/as400\/as400-printing-windows-printer-share.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.netexpertise.eu\/en\/systems\/as400\/as400-printing-windows-printer-share.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.netexpertise.eu\/en"},{"@type":"ListItem","position":2,"name":"AS400 Printing to a Windows Printer Share"}]},{"@type":"WebSite","@id":"https:\/\/www.netexpertise.eu\/en\/#website","url":"https:\/\/www.netexpertise.eu\/en\/","name":"Netexpertise","description":"Systems \/ Networks \/ DevOps","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.netexpertise.eu\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa","name":"dave","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/image\/","url":"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g","contentUrl":"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g","caption":"dave"},"sameAs":["http:\/\/www.netexpertise.eu"]}]}},"_links":{"self":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/posts\/860"}],"collection":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/comments?post=860"}],"version-history":[{"count":0,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/posts\/860\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/media?parent=860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/categories?post=860"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/tags?post=860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}