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

how to restart a program without using jcl


IBM Mainframe Forums -> COBOL Programming
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 Dec 15, 2004 7:53 pm
Reply with quote

i have 2 files ,i need to compare(one field) the 2 files,and write the records which are not equakl to 3rd file



2 . how to restart a program without using jcl




Thanks
Siva
Back to top
View user's profile Send private message
jz1b0c

Active User


Joined: 25 Jan 2004
Posts: 160
Location: Toronto, Canada

PostPosted: Wed Dec 15, 2004 11:21 pm
Reply with quote

Siva,

Please write questions clearly.

I got your question like this.

File-1

1
3
4
7

File-2
2
3
4
7
9

your output should have..

1
2
9.


if I got your question correct here is the answer

for this you have to sort both the files in same order.


Read file-1
Read file-2

Evaluate True
When file1-rec > file2-rec
write out-file from file2-rec
read file-2
when file2-rec > file1-rec
write out-file from file1-rec
read file-1
when file2-rec = file1-rec
read file-1
read file-2
ned-evaluate.
Back to top
View user's profile Send private message
sandip_datta

Active User


Joined: 02 Dec 2003
Posts: 150
Location: Tokyo, Japan

PostPosted: Thu Dec 16, 2004 12:23 pm
Reply with quote

Hi Siva,

It can be done in SORT also but before I can proceed, I need following information -

1. File1 can contain duplicate or not?
2. File2 can contain duplicate or not?
3. File1 can contain all records in File2 + extra record?
4. File2 can contain all records in File1 + extra record?
5. Record length, F/V, field position and length?


A program can not be executed without JCL unless it is an online program. Online program can be executed/restarted by firing transaction ID but at backgrond some jcl must be running.

Regards,
Sandip.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top