MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Why different results?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
samsun
Beginner


Joined: 24 Feb 2004
Posts: 19
Topics: 7
Location: TAIWAN

PostPosted: Fri Feb 27, 2004 2:59 am    Post subject: Why different results? Reply with quote

I wrote a JCL to prompt the response to the console.
But something strange happened:
When I submit the job from my own library(ie. SYSPXX.JCL), the result is fine.(ie. TSU worked )
But when I submit the job through other address(ie. OPS, INTRDR), the text that I wnat to display was shifted to the wrong one. As follow:

original message:
EZA0458I Ping V3R2: Pinging host 192.168.6.200. Use ATTN to interrupt.
EZA0463I PING: Ping #1 response took 0.007 seconds. Successes so far 1.
EZA0458I Ping V3R2: Pinging host 192.168.6.201. Use ATTN to interrupt.
EZA0463I PING: Ping #1 response took 0.007 seconds. Successes so far 1.


The right message should be:(from tso SUBMIT)
+EZA0458I Ping V3R2: Pinging host 192.168.6.200.
+EZA0463I PING: Ping #1 response took 0.007 seconds. Successes
+EZA0458I Ping V3R2: Pinging host 192.168.6.201.
+EZA0463I PING: Ping #1 response took 0.007 seconds. Successes


Wrong message:(from INTERNAL READER or OPS )
+Ping V3R2: Pinging host 192.168.6.200. Use ATT
+PING: Ping #1 response took 0.007 seconds. Successes so far 1
+Ping V3R2: Pinging host 192.168.6.201. Use ATT
+PING: Ping #1 response took 0.007 seconds. Successes so far 1


What could be the reason which cause the whole text to be shift?
JES2? MVS? SMS? Crying or Very sad
(It looks like the MESSAGE 'EZAxxxxI' are to be ignored....)

Thanks~
Back to top
View user's profile Send private message Send e-mail MSN Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Mon Mar 01, 2004 2:22 pm    Post subject: Reply with quote

samsun,

The Intrdr will add a carriage control character in the first byte which makes the contents to be shifted by 1 byte. So force a RECFM of FB on the intrdr

Code:

//OUTPUT  DD SYSOUT=(*,INTRDR),RECFM=FB


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
samsun
Beginner


Joined: 24 Feb 2004
Posts: 19
Topics: 7
Location: TAIWAN

PostPosted: Tue Mar 02, 2004 4:22 am    Post subject: Reply with quote

Hello Kolusu,
I tried to put ur DD card into my JCL but the result was still the same.....
I wonder if the job using user id or STC id has different output format?

Sam
Back to top
View user's profile Send private message Send e-mail MSN Messenger
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Wed Mar 03, 2004 2:24 am    Post subject: Reply with quote

This is the probable reason. How did you direct the output to the console (I assume by console you mean your terminal and not the real operator's console). can you post that?
Back to top
View user's profile Send private message Visit poster's website
samsun
Beginner


Joined: 24 Feb 2004
Posts: 19
Topics: 7
Location: TAIWAN

PostPosted: Wed Mar 03, 2004 3:03 am    Post subject: Reply with quote

Following is the main JCL:

//SYSP07P JOB (),MSGCLASS=A,MSGLEVEL=(1,1......
//*
//STEP1 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DSN=NULLFILE,DCB=SYSP07.PRINT
//SYSUT2 DD DSN=SYSP07.PRINT,DISP=OLD
/*
//STEP2 EXEC PGM=IKJEFT01,REGION=4096K
//SYSEXEC DD DSN=CAPBO.CLIST,DISP=SHR
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD DSN=SYSP07.PRINT,DISP=MOD
//SYSTSIN DD *
%PINGHSM /*CALL CLIST PGM SIMPLY EXECUTE PING*/
/*
//STEP3 EXEC PGM=DISREPLY
//STEPLIB DD DSN=SYSP07.LOAD,DISP=SHR
//SYSPRINT DD SYSOUT=X
//INDATA1 DD DSN=SYSP07.PRINT,DISP=SHR
---------------------------------------------------------------------------

In step3, the DISREPLY is coded by PL/1:

//DISREPLY JOB IMSP,REGION=4096K,MSGCLASS=X,CLASS=A
//STEP EXEC PLIXCL
//SYSPRINT DD SYSOUT=X
//PLI.SYSIN DD *
* PROCESS NEST,GOSTMT,CHARSET(60),XREF,ATTRIBUTES(SHORT);
PLIZZZ: PROCEDURE OPTIONS (MAIN);
DCL (SUBSTR,ONCODE,ONCHAR,ONSOURCE,ONFILE,ONLOC,ONKEY) BUILTIN;
DCL SYSPRINT FILE STREAM;
DCL INDATA1 FILE RECORD INPUT;
DCL INWK1 CHAR(256);
DCL OUTWK CHAR(65);
ON ERROR BEGIN;
PUT SKIP LIST (ONCODE,ONLOC,ONFILE,ONKEY);
GO TO EOJ;
END;
ON ENDFILE (INDATA1) GOTO CLOSEF;
OPEN: OPEN FILE (INDATA1);
READ FILE (INDATA1) INTO (INWK1);
OUTWK = SUBSTR(INWK1,1,47);
DISPLAY(''||OUTWK||'');
READ FILE (INDATA1) INTO (INWK1);
OUTWK = SUBSTR(INWK1,1,61);
DISPLAY(''||OUTWK||'');
READ FILE (INDATA1) INTO (INWK1);
OUTWK = SUBSTR(INWK1,1,47);
DISPLAY(''||OUTWK||'');
READ FILE (INDATA1) INTO (INWK1);
OUTWK = SUBSTR(INWK1,1,61);
DISPLAY(''||OUTWK||'');
CLOSEF: CLOSE FILE (INDATA1);
EOJ: END;
/*
//LKED.SYSPRINT DD SYSOUT=X
//LKED.SYSLMOD DD DSN=SYSP07.LOAD(DISREPLY),DISP=SHR
//*GO.INDATA1 DD DSN=SYSP07.PRINT,DISP=SHR


Thanks~~~~~
Back to top
View user's profile Send private message Send e-mail MSN Messenger
samsun
Beginner


Joined: 24 Feb 2004
Posts: 19
Topics: 7
Location: TAIWAN

PostPosted: Wed Mar 03, 2004 3:18 am    Post subject: Reply with quote

Sorry, I forgot to say that I directed the output to the operator's console, not a tso terminal.....
Exclamation
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group