MediaWiki-API-Ergebnis

This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.

Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.

See the complete documentation, or the API help for more information.

{
    "batchcomplete": "",
    "continue": {
        "gapcontinue": "Rebekka_Reinhard",
        "continue": "gapcontinue||"
    },
    "warnings": {
        "main": {
            "*": "Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes."
        },
        "revisions": {
            "*": "Because \"rvslots\" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used."
        }
    },
    "query": {
        "pages": {
            "1584": {
                "pageid": 1584,
                "ns": 0,
                "title": "Read Text File with DSL (from Fraktal SAS Programming)",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "[[Kategorie:zazy]]\n{{SeitenNavigation1\n|hoch=Duck_zazy_com.png\n|links=xx_left.png\n|rechts=xx_right.png\n|\u00fcbersicht=Data Step Programming (from Fraktal SAS Programming)\n|zur\u00fcck=Create Dataset with DSL (from Fraktal SAS Programming)\n|vorw\u00e4rts=Process Data using DSL (from Fraktal SAS Programming)\n}}\n\n== What is this? ==\n\n'''''SAS''''' can read directly from any text file.\nMoreover '''''SAS''''' can read directly from any data source that has text file properties, such as FTP, HTTP, or XML, also from named pipes and DDE hotlinks.\n\nWhen intending to read from a plain text file, you simply specify path and filename along with a description of the record structure. The text file shall look like this:\n\n Royal Inn#King's Suite#4#540\n The European#Standard#1#120\n St.Peter's#Business#2#333\n\n\n== Documented Code ==\n\n{| class=\"wikitable\"\n|-\n! Code executed\n! Function performed\n|-\n|\n;filename source \"&PATH.\\&FILENAME.\";\n|Generate a ''file reference'' with OS path and file name incl. extension.\n|-\n|\n;data hotels;\n|Initiate data step processing with a DATA statement.\n|-\n|\n:infile source dlm = '#';\n|Use ''fileref'' from above as source with the number sign '#' as field delimiter.\n|-\n|\n:length hotel $16 category $16 no_of_beds rate_in_GBP 8;\n|Allocate field space by supplying length in bytes and data type.\n|-\n|\n:input hotel $ category $ no_of_beds rate_in_GBP;\n|Specify data structure on text file.\n|-\n|\n;run <cancel>;\n|End the data step run-group (use ''\"cancel\"'' for syntax check only).\n|-\n|\n;filename source clear;\n|Clear file reference thus un-locking the file referenced.\n|}\n\n\n== Results ==\n\nWhen issuing the phrase '''''\"vt hotels\"''''' in the command window of your '''''SAS''''' session, the following table might pop-up in a '''''\"Viewtable Window\"''''':\n\n{| class=\"wikitable\"\n|-\n! hotel \n! category\n! no_of_beds \n! rate_in_GBP\n|-\n|Royal Inn||King's Suite||4||540\n|-\n|The European||Standard||1||120\n|-\n|St.Peter's||Business||2||333\n|}\n\n{{SeitenNavigation1\n|hoch=Duck_zazy_com.png\n|links=xx_left.png\n|rechts=xx_right.png\n|\u00fcbersicht=Data Step Programming (from Fraktal SAS Programming)\n|zur\u00fcck=Create Dataset with DSL (from Fraktal SAS Programming)\n|vorw\u00e4rts=Process Data using DSL (from Fraktal SAS Programming)\n}}"
                    }
                ]
            },
            "1196": {
                "pageid": 1196,
                "ns": 0,
                "title": "Realtime Information (from Fraktal SAS Programming)",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "[[Kategorie:zazy]]\n{{SeitenNavigation1\n|links=xx_left.png\n|zur\u00fcck=Workflow Documentation (from Fraktal SAS Programming)\n|rechts=xx_right.png\n|vorw\u00e4rts=Apply Logic (from Fraktal SAS Programming)\n|hoch=Duck_zazy_com.png\n|\u00fcbersicht=Extending Control (from Fraktal SAS Programming)\n}}\n\n== Mail tags ==\n\nDepending on how structured your programming approach is and moreover, how close you want to be to program activity, you might consider using '''e-mail as instant documentation vehicle'''.\n\nSAS supports instant e-mail generation very well by using the MAPI interface definition that is automatically installed on every machine having access to a default mail gateway.\n\n filename &MYMAILREF. EMAIL 'addressee@domain';\n\nHowever easy-going this looks, you will get no result from the example above except an empty mail. Of course, you need to provide '''mail-tags according to ''RFC-822'''''  <http://tools.ietf.org/html/rfc822>, like '''\"To:\"''', '''\"Subject:\"''', etc. and, if appropriate, the name and location of attachments.\n\n filename &MYMAILREF. EMAIL 'addressee@domain'\n subject = \u201cInterim results from running program at &SYSTIME.\u201d\n attach = (\u201c&MYPATH.\\results.png\u201d \u201c&OTHERPATH.\\tables.pdf\u201d)\n ;\n\nThe 1st address given in quotes is used as '''''\"To:\"'' tag'''. A 2nd (explicit) '''''\"To:\"'' tag''' would overwrite the 1st one. In addition, tags may be populated with single values as well as with a blank separated list of quoted values set in brackets.\n\n\n== Mail body ==\n\nAs soon as the mail vehicle has been prepared as text storage location with special attributes ('''\"TAGS\"''') it is ready to receive body text.\n\n data _NULL_;\n file &MYMAILREF.;\n put @1 \u201cDear Colleagues,\u201d\n  #3 @5 \u201cplease find attached \u2026\u201d\n ;\n run;\n\nAdhering to the code segment concept, we finally close the destination file by:\n\n filename &MYMAILREF. clear;\n\n{{SeitenNavigation1\n|links=xx_left.png\n|zur\u00fcck=Workflow Documentation (from Fraktal SAS Programming)\n|rechts=xx_right.png\n|vorw\u00e4rts=Apply Logic (from Fraktal SAS Programming)\n|hoch=Duck_zazy_com.png\n|\u00fcbersicht=Extending Control (from Fraktal SAS Programming)\n}}"
                    }
                ]
            }
        }
    }
}