|
|
| Author |
Message |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 7397 Location: Brussels once more ...
|
|
|
|
| Prasanya wrote: |
| While processing the existing file, am having mismatch in the positions that i give in my sort control cards.. Please help me with this. I need to check for the presence of certain data in the existing file. |
Unless you learn, and very quickly, that when you bother to post usefull information you may receive a usefull answer. |
|
| Back to top |
|
 |
References
|
|
 |
Prasanya
New User
Joined: 04 Jun 2007 Posts: 34 Location: Chennai
|
|
|
|
My input file is a SAS log file from a production system. I need to validate the messages and errors in it using a job since i get 22 such files a day.
When i tried checking for the errors and messages using the positions that i found in the log file - they dint match. Thats why i thought it would be better to convert the log file to a FB file.
Please suggest if there is any appropriate way to validate the errors and messages present in the log file |
|
| Back to top |
|
 |
enrico-sorichetti
Global Moderator
Joined: 14 Mar 2007 Posts: 5990 Location: italy
|
|
|
|
| please reread my previous post ! |
|
| Back to top |
|
 |
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1292
|
|
|
|
Hi,
the data is from DDNAME SASLOG and is a VB file with an LRECL of 137.
How is the dataset created ? ie. What does the JCL for //SASLOG DD look like ?
Gerry |
|
| Back to top |
|
 |
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3258 Location: Tucson AZ
|
|
|
|
| Prasanya wrote: |
| When i tried checking for the errors and messages using the positions that i found in the log file - they dint match. Thats why i thought it would be better to convert the log file to a FB file. |
Why not just add one to 'the position' to allow for the 'I/O command code'? |
|
| Back to top |
|
 |
Prasanya
New User
Joined: 04 Jun 2007 Posts: 34 Location: Chennai
|
|
|
|
Hi William,
I had already tried that but that din't work.
Gerry:
I wasn't able to understand your question.
The SASLOG file is from a third party production system. |
|
| Back to top |
|
 |
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3258 Location: Tucson AZ
|
|
|
|
| Prasanya wrote: |
| I had already tried that but that din't work. |
Please explain "did not work"...... |
|
| Back to top |
|
 |
enrico-sorichetti
Global Moderator
Joined: 14 Mar 2007 Posts: 5990 Location: italy
|
|
|
|
| Quote: |
| but that din't work. |
(*)
that' awful, we hope You can fix it soon.
do You realize that You did not post yet anything useful to get an answer..
please reply/post to the following...
1) input file layout and content
2) output file layout and content
3) description of the process
what is the relation of the input and output files in Your second post ? |
|
| Back to top |
|
 |
Prasanya
New User
Joined: 04 Jun 2007 Posts: 34 Location: Chennai
|
|
|
|
!) The input file is a SAS log file with length 255 and RECFM is FBA. I had already given some content from the input file. Its not a content from SYSprint or SYSout. Its a log file sent by a production system and hence looks similar to SYSPRINT.
2) Ouput is an Error file with RECFM as FB, containing only critical errors from the SAS log file
3) The process as mentioned earlier is to validate the errors and messages present in the SAS log file and send required notifications.
Eg: Input file
| Code: |
NOTE: This session is executing on the z/OS V01R10M00 platform.
NOTE: Running on IBM Model 2097 Serial Number 014A32,
IBM Model 2097 Serial Number 014A32,
+ERROR: Teradata execute: Object 'AAAAAAAAAAAAAAAAAAA',
+ERROR: Teradata execute: Object 'BBBBBBBBBBBBBBBBBBB'
|
This error field is shown in position 2 but when i search for 'ERROR:' string from position 2 its not found.
So wen i tried writing the entire input log file to an output FB file these records were displayed as follows:
| Code: |
¡NOTE: This session is executing on the z/OS kV01R10M00 platform.̯ÌÚ ©NOTE: Running on IBM Model 2097 Serial Number 014A32,ÌH tIBM Model 2097 Serial Number 014A32,}ERROR: Teradata execute: Object 'AAAAAAAAAAAAAAAAAAA' ,}ERROR: Teradata execute: Object 'BBBBBBBBBBBBBBBBBBB'
|
|
|
| Back to top |
|
 |
enrico-sorichetti
Global Moderator
Joined: 14 Mar 2007 Posts: 5990 Location: italy
|
|
|
|
are You sure about the FB ??? looks more like a VB thing to me
ISPF edit/view/browse hides quite a few details! |
|
| Back to top |
|
 |
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3258 Location: Tucson AZ
|
|
|
|
| Quote: |
| So wen i tried writing the entire input log file to an output FB file these records were displayed as follows |
Just what did you use to write "the entire input log file to an output FB file"? |
|
| Back to top |
|
 |
Prasanya
New User
Joined: 04 Jun 2007 Posts: 34 Location: Chennai
|
|
|
|
| Ya am sure about that |
|
| Back to top |
|
 |
Prasanya
New User
Joined: 04 Jun 2007 Posts: 34 Location: Chennai
|
|
|
|
| I tried to copy the input log file to the output FB file using IEBGENER as well as SORT. I have given the job details earlier for this post. |
|
| Back to top |
|
 |
enrico-sorichetti
Global Moderator
Joined: 14 Mar 2007 Posts: 5990 Location: italy
|
|
|
|
| Quote: |
| Ya am sure about that |
ridiculous remark
the crippled output is the result of processing a VB dataset as a FB dataset...
do You realize it or not ?
all the data is junked up!
browse the output dataset with hex on and You will see that before the readable data there will be four bytes containing the length of the data itself up to the next 4 |
|
| Back to top |
|
 |
Prasanya
New User
Joined: 04 Jun 2007 Posts: 34 Location: Chennai
|
|
|
|
I have checked the file as u said, the 1st four bytes contain the log data and not the length.
I have checked it properly and thats why i said am sure that its not a VB file |
|
| Back to top |
|
 |
|
|