z/OS ISPF Services Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


User response JSON examples

z/OS ISPF Services Guide
SC19-3626-00

The following example shows the JSON when the user selects the View point-and-shoot field for option 1 on the ISPF primary options menu:

{
    "PANEL":{
        "SCREENID":"1",
        "NAME":"ISR@PRIM",
        "RESPONSE":{
            "TYPE":"PS",
            "ID":"0PS-7-5"
        },
        "CURSOR":{
            "ROW":6,
            "COLUMN":5
        }
    }
}

The following example shows the JSON when the View entry panel (ISPF option 1) is displayed and the user types 'sys1.maclib(abend)' in the Other Data Set Name field, selects the Browse Mode option, and presses the Enter key:

{
    "PANEL":{
        "SCREENID":"1",
        "NAME":"ISRBRO01",
        "RESPONSE":{
            "TYPE":"KEY",
            "ID":"ENTER"
        },
        "CURSOR":{
            "ROW":19,
            "COLUMN":42
        },
        "FIELDS":[{
                "NAME":"ZODSN",
                "DATA":"'sys1.maclib(abend)'"
            },
            {
                "NAME":"VIEWM",
                "DATA":"/"
            }
        ]
    }
}

The following example shows the JSON when the user defines a new data set using the ISPF Data Set Utility function (ISPF option 3.2):

{
    "PANEL":{
        "SCREENID":"1",
        "NAME":"ISRUAASE",
        "RESPONSE":{
            "TYPE":"KEY",
            "ID":"ENTER"
        },
        "CURSOR":{
            "ROW":21,
            "COLUMN":28
        },
        "FIELDS":[{
                "NAME":"ZALMC",
                "DATA":""
            },
            {
                "NAME":"ZALSPAC",
                "DATA":"trks"
            },
            {
                "NAME":"ZAL1EX",
                "DATA":"10"
            },
            {
                "NAME":"ZAL2EX",
                "DATA":"2"
            },
            {
                "NAME":"ZALDIR",
                "DATA":"10"
            },
            {
                "NAME":"ZALRF",
                "DATA":"fb"
            },
            {
                "NAME":"ZALLREC",
                "DATA":"80"
            },
            {
                "NAME":"ZALBLK",
                "DATA":"27920"
            },
            {
                "NAME":"ZALDSNT",
                "DATA":"pds"
            }
        ]
    }
}

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014