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
 

 

how to restart a program without using jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 190
Location: hyderabad

PostPosted: Wed Dec 15, 2004 7:53 pm    Post subject: how to restart a program without using jcl
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    Post subject:
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: 151
Location: Tokyo, Japan

PostPosted: Thu Dec 16, 2004 12:23 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts A sample of exit program for exit XMN... lind sh CICS 2 Mon Oct 03, 2016 5:07 pm


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