|
From: Howard Brazee on 7 May 2008 10:26 On Tue, 6 May 2008 23:38:49 -0700 (PDT), amir <ahsharif(a)gmail.com> wrote: >I tried to run my first program under MVS as I said before. So how do you have access to an MVS machine without an environment with either teachers, co-workers, or supervisors?
From: Howard Brazee on 7 May 2008 10:28 On Wed, 7 May 2008 05:46:16 -0700 (PDT), amir <ahsharif(a)gmail.com> wrote: >I got the file through FTP. I could not cut and paste it. maybe some >special characters, I don't know. >If you specify what peace of code is necessary to help, I will type it >again if needed. Did you FTP it to your PC? And your PC's OS is not one that I'm familiar with and does not have cut and paste facilities?
From: Richard on 7 May 2008 15:22 On May 8, 12:46 am, amir <ahsha...(a)gmail.com> wrote: > On May 7, 11:54 am, "William M. Klein" <wmkl...(a)nospam.netcom.com> > wrote: > > > > > Everyone has asked for you to show the LISTING with the problems under MVS. You > > don't ever show it. > > > My guess (and everyone else's) is that you have your code in the wrong columns. > > (Starting in column 1 might work on a PC - but will NEVER work on the > > mainframe). > > > If you would just do as you have been asked, you MIGHT get a useful reply. > > > If you don't know HOW to get the listing (with source code and error messages) > > on MVS, then ask someone at the site that gave you JCL to compile there. > > > However, as I say, I think your source code just starts in the wrong column and > > you have never answered any of us who have suggested that this is the problem. > > > -- > > Bill Klein > > wmklein <at> ix.netcom.com"amir" <ahsha...(a)gmail.com> wrote in message > > >news:9d89bc65-3acd-4417-ba91-7c5f990bcb0c(a)e39g2000hsf.googlegroups.com... > > > >I tried to run my first program under MVS as I said before. > > > > I tried a sample code as I told before. I got some errors which I > > > could not understand what the problem is? > > > Anyway, I tried the code to compile under another compiler (MSCobol). > > > Compilation Result was successful. I tried different parts to change > > > and everything done with no problem. > > > > Can anyone help me to write my program under MVS and compile it? (I am > > > using ISPF editor) > > > Any help appreciated before. > > > > (Special Thanks to DD about help to solve some problems.) > > > Thanks, > > I got the file through FTP. I could not cut and paste it. maybe some > special characters, I don't know. > If you specify what peace of code is necessary to help, I will type it > again if needed. Under Windows on a PC each line will be terminated by an ASCII CR and LF character. If you ftped then tyhe file may wind up with whatever ebcdic value the CR and LF converted to. As the errors indicated the columns _after_ the actual characters shown then it may be that it is complaining about these alien values. Check your FTP manual so that the correct hex values are converted to, and perhaps strip off the line terminators. This may be as simple as specifying 'ascii' or 'ebcdic' rather than 'binary' (which it may default to) in the FTP transfer.
From: William M. Klein on 7 May 2008 15:24
In your original note you showed us the compiler error messages (those starting with IGY). These must have been "visible" to you in a file somewhere. What we need to see is that entire file with those messages. P.S. If you are FTP'ing your source code to and from the mainframe, you need to make certain that it is DCB=(LRECL=80,RECFM=F) (or FB) on the mainframe. As others have indicated, if you don't understand this, then you should contact the person who got you "started" with compiling on the mainframe. They would understand all of this. -- Bill Klein wmklein <at> ix.netcom.com "amir" <ahsharif(a)gmail.com> wrote in message news:86f755fe-26fe-4e97-bb96-9fe535901036(a)d1g2000hsg.googlegroups.com... > On May 7, 11:54 am, "William M. Klein" <wmkl...(a)nospam.netcom.com> > wrote: >> Everyone has asked for you to show the LISTING with the problems under MVS. >> You >> don't ever show it. >> >> My guess (and everyone else's) is that you have your code in the wrong >> columns. >> (Starting in column 1 might work on a PC - but will NEVER work on the >> mainframe). >> >> If you would just do as you have been asked, you MIGHT get a useful reply. >> >> If you don't know HOW to get the listing (with source code and error >> messages) >> on MVS, then ask someone at the site that gave you JCL to compile there. >> >> However, as I say, I think your source code just starts in the wrong column >> and >> you have never answered any of us who have suggested that this is the >> problem. >> >> -- >> Bill Klein >> wmklein <at> ix.netcom.com"amir" <ahsha...(a)gmail.com> wrote in message >> >> news:9d89bc65-3acd-4417-ba91-7c5f990bcb0c(a)e39g2000hsf.googlegroups.com... >> >> >I tried to run my first program under MVS as I said before. >> >> > I tried a sample code as I told before. I got some errors which I >> > could not understand what the problem is? >> > Anyway, I tried the code to compile under another compiler (MSCobol). >> > Compilation Result was successful. I tried different parts to change >> > and everything done with no problem. >> >> > Can anyone help me to write my program under MVS and compile it? (I am >> > using ISPF editor) >> > Any help appreciated before. >> >> > (Special Thanks to DD about help to solve some problems.) >> > Thanks, > > I got the file through FTP. I could not cut and paste it. maybe some > special characters, I don't know. > If you specify what peace of code is necessary to help, I will type it > again if needed. |