{ "header": { "version": 1, "type": "record" }, "body": { "record1": { "<1>": "declare function security_check, set_printer, get_printer, msg, entid, repository\r\ndeclare function print_quote, MemberOf\r\ndeclare subroutine security_err_msg, Print_Control_Plan, Print_Control_Plan_JCH\r\n\r\n$insert security_rights_equ\r\n$insert msg_equates\r\n$insert logical\r\n\r\nif security_check( 'Prod Spec', Print$ ) then\r\n\tif @@window->savewarn = true$ then\r\n\t\tMsgInfo = ''\r\n\t\tMsgInfo = 'You need to save this PSN before printing.'\r\n\t\tMsgInfo = '!'\r\n\t\tVoid = msg( '', MsgInfo )\r\n\t\treturn 0\r\n\tend else\r\n\t\tPSNo = .prod_spec_id->text\r\n\t\tPrint_Control_Plan(PSNo)\r\n\tend\r\nend else\r\n security_err_msg( 'Prod Spec', Print$ )\r\nend\r\nRETURN 0" } } }