IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

check for wrong data


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 191
Location: hyderabad

PostPosted: Wed May 04, 2005 11:25 am
Reply with quote

Hi friends

i have some doubts, plz do reply

i have 10,000 records as input of the record
one of the record data is of invalid format (ie a particular field has non numeric data) Is there any way to check for the given data is of valid format or not ....before processing it through program


in a CICS-COBOL programs when is COPY expanded
At Translate time or at compile time...

Regards
siva
Back to top
View user's profile Send private message
pushkar

New User


Joined: 29 Apr 2005
Posts: 2

PostPosted: Wed May 04, 2005 5:11 pm
Reply with quote

Hi siva,

Quote:
in a CICS-COBOL programs when is COPY expanded
At Translate time or at compile time...

Corect me if i am wrong. but what i understand is the copy is expanded at compile time.
Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Wed May 04, 2005 5:31 pm
Reply with quote

i think it should be in translating step as as far as i know, steps are like as follows:
1. SYSIN(Source Program)
2.Command Level Language Translater --> sysprint translator listing
3. SYSPUNCH, containing transalted source program
4.High level Language assembler --> compiler listing(Object Module created).
5.Link Editor -->Link-editor sysprint
6. Load module creted

hence the copy book should be expanded at the first step only.say for example i have a copy book which certain CICS statement, hence when transaltion of CICS code is done then this ciopy book should be available in uncompressed format.
correct me if i m wrong and let me know if u have diffrent opinion on this.
Thanks
Back to top
View user's profile Send private message
srividya.srinivasan

New User


Joined: 30 Mar 2005
Posts: 11
Location: Pune, India

PostPosted: Thu May 05, 2005 3:52 pm
Reply with quote

Hi Siva,

If u have so many records , then put a condition before moving the field.
Ex:
IF filed IS NUMERIC
Process
ELSE
Write to some Error tracking file

By doing thsi neither will u r Job Abend and u'll b able to fine the Record with Alphanumeric Format.



Vidya
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts JCL EXEC PARM data in C Java & MQSeries 2
Search our Forums:

Back to Top