Reading Manually Inputted Cobol File



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Re: Reading Manually Inputted Cobol File

Postby NicC » Tue Mar 22, 2011 11:09 am

One of the purposes of having the JCL is so that you can change it without having to change your COBOL code.

I believe that what you want is dynamic allocation within COBOL which is achieved by using module BPX?????? - sorry, do not know the full name but it is mentioned several times in the COBOL section and a quick search within the forum would have found hits re dynamic allocation and on Google over 1,390,000 hits of which the first was entirely relevant to your question which should not have been asked and should not have been tagged onto someone elses question.

If you have been a member since October 2010 you should have seen these comments many times and know how to avoid them!
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Reading Manually Inputted Cobol File

Postby Viswanathchandru » Tue Mar 22, 2011 11:18 am

Thanks again NicC for your time and support!! and sorry for tagging my question in others post. I thought it was relevant so that i could get a reply as it is being discussed. This will not happen again. Thanks again.

Thanks,
Viswa.
Viswanathchandru
 
Posts: 271
Joined: Mon Oct 25, 2010 2:24 pm
Has thanked: 25 times
Been thanked: 0 time

Re: Reading Manually Inputted Cobol File

Postby Robert Sample » Tue Mar 22, 2011 4:04 pm

BPXWDYN is used to dynamically allocate files in a COBOL program. IBM has a very good description of it and the parameters that can be used at http://publib.boulder.ibm.com/infocente ... 0/wdyn.htm
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Reading Manually Inputted Cobol File

Postby abhirocksf5 » Sat Sep 13, 2014 12:27 am

How to point a file for read a file in Microsoft Windows COBOL compiler?
I am using the same SELECT clause in ENVIRONMENT DIVISION as we do in IBM Mainframes, but facing the error.

Below is the code snippet.
code.jpg


Below is the Error which I am getting

error.jpg



Any help is appreciated.
You do not have the required permissions to view the files attached to this post.
Thank you !
User avatar
abhirocksf5
 
Posts: 7
Joined: Wed Apr 24, 2013 10:24 pm
Location: India
Has thanked: 3 times
Been thanked: 0 time

Re: Reading Manually Inputted Cobol File

Postby prino » Sat Sep 13, 2014 4:32 am

IBM MAINFRAME FORUM
A Help & Support Forum for Mainframe Beginners and Students

Tagging on to a topic that has been dormant for nearly three-and-a-half years with a question about about Mickey$oft software that is totally unrelated to mainframes?
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 635
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 28 times

Re: Reading Manually Inputted Cobol File

Postby NicC » Mon Sep 15, 2014 2:26 am

Locking topic rather than deleting the 'bad' post.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Previous

Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post