Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

check for wrong data

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 190
Location: hyderabad

PostPosted: Wed May 04, 2005 11:25 am    Post subject: check for wrong data
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    Post subject:
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    Post subject:
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    Post subject: 10,000 records as input of the record
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us