Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Conversion from FBA to FB
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 7397
Location: Brussels once more ...

PostPosted: Tue Feb 09, 2010 12:23 pm    Post subject:
Reply with quote

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
View user's profile Send private message
References
Prasanya

New User


Joined: 04 Jun 2007
Posts: 34
Location: Chennai

PostPosted: Tue Feb 09, 2010 1:28 pm    Post subject:
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 5990
Location: italy

PostPosted: Tue Feb 09, 2010 1:46 pm    Post subject: Reply to: Conversion from FBA to FB
Reply with quote

please reread my previous post !
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1292

PostPosted: Tue Feb 09, 2010 1:52 pm    Post subject:
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3258
Location: Tucson AZ

PostPosted: Tue Feb 09, 2010 2:03 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Prasanya

New User


Joined: 04 Jun 2007
Posts: 34
Location: Chennai

PostPosted: Tue Feb 09, 2010 2:12 pm    Post subject:
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3258
Location: Tucson AZ

PostPosted: Tue Feb 09, 2010 2:14 pm    Post subject:
Reply with quote

Prasanya wrote:
I had already tried that but that din't work.
Please explain "did not work"......
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 5990
Location: italy

PostPosted: Tue Feb 09, 2010 2:16 pm    Post subject: Reply to: Conversion from FBA to FB
Reply with quote

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
View user's profile Send private message
Prasanya

New User


Joined: 04 Jun 2007
Posts: 34
Location: Chennai

PostPosted: Tue Feb 09, 2010 2:37 pm    Post subject:
Reply with quote

!) 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
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 5990
Location: italy

PostPosted: Tue Feb 09, 2010 2:41 pm    Post subject: Reply to: Conversion from FBA to FB
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3258
Location: Tucson AZ

PostPosted: Tue Feb 09, 2010 2:44 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Prasanya

New User


Joined: 04 Jun 2007
Posts: 34
Location: Chennai

PostPosted: Tue Feb 09, 2010 2:45 pm    Post subject:
Reply with quote

Ya am sure about that
Back to top
View user's profile Send private message
Prasanya

New User


Joined: 04 Jun 2007
Posts: 34
Location: Chennai

PostPosted: Tue Feb 09, 2010 2:47 pm    Post subject:
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 5990
Location: italy

PostPosted: Tue Feb 09, 2010 2:49 pm    Post subject: Reply to: Conversion from FBA to FB
Reply with quote

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
View user's profile Send private message
Prasanya

New User


Joined: 04 Jun 2007
Posts: 34
Location: Chennai

PostPosted: Tue Feb 09, 2010 2:59 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 HoursGoto page Previous  1, 2, 3, 4  Next
Page 2 of 4