/* diagnose code 0x14 subcode 0x0028 - position spool file to designated record cc=0 normal completion cc=2 no file active on the virtual reader or device not ready cc=3 record specified is beyond EOF  */
static int diag_position_to_record(int devno, int record)
/* diagnose code 0x14 subcode 0x0028 - position spool file to designated record cc=0 normal completion cc=2 no file active on the virtual reader or device not ready cc=3 record specified is beyond EOF  */
static int diag_position_to_record(int devno, int record)
{
	int cc;
	cc = diag14(record, devno, 0x28);
	switch (cc) {
	case 0:
		return 0;
	case 2:
		return -ENOMEDIUM;
	case 3:
		return -ENODATA;
	default:
		return -EIO;
	}
}