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

COBOL and DB2 FAQ's


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

New User


Joined: 16 Apr 2006
Posts: 29

PostPosted: Tue May 16, 2006 1:37 am
Reply with quote

Hi,
i Haven few doublts in the cobl and db2 ,i giving below,if any body know pls let me know

1.how will u send data from a cobol file to db2 table?
2.What will happened ,if the subprogram is called second time?
3.How to pass return codes from Cobol to jcl?
4.If a DataStage job has aborted after say 1000 records, how to continue the load from 1000th record ?
5.I have 1000 records in vsam,I want to read records 500 to 900
Back to top
View user's profile Send private message
ralph_v

New User


Joined: 07 Jul 2005
Posts: 27

PostPosted: Wed May 17, 2006 8:20 pm
Reply with quote

2) If the subprogram is called twice it will be in old state so inorder to avoid we code is INITIAL near program-id so whenever we call the sub program again , the values inside the sub-program will be in intialised state.
Back to top
View user's profile Send private message
ralph_v

New User


Joined: 07 Jul 2005
Posts: 27

PostPosted: Wed May 17, 2006 8:21 pm
Reply with quote

2) If the subprogram is called twice it will be in old state so inorder to avoid we code is INITIAL near program-id so whenever we call the sub program again , the values inside the sub-program will be in intialised state.
3) Move <value> to RETURN-CODE
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top