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 Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am


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