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

Values not writing into o/p file properly


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Vidya Kajale

New User


Joined: 01 Jun 2010
Posts: 43
Location: India

PostPosted: Mon Jun 06, 2011 2:07 pm
Reply with quote

i found in jobdetails in SYSPRINT by searching for "Options in effect"

Code:
Options in effect:                                                             
 NOADATA                                                                       
 NOADV                                                                         
   APOST                                                                       
   ARITH(COMPAT)                                                               
   AWO                                                                         
 NOBLOCK0                                                                       
   BUFSIZE(31744)                                                               
 NOCICS                                                                         
   CODEPAGE(1140)                                                               
 NOCOMPILE(S)                                                                   
 NOCURRENCY                                                                     
   DATA(31)                                                                     
 NODATEPROC                                                                     
 NODBCS                                                                         
 NODECK                                                                         
 NODIAGTRUNC                                                                   
 NODLL                                                                         


How will i set it to ADV.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Jun 06, 2011 2:13 pm
Reply with quote

A good way is to check in the manuals about how to set compiler options. Also look it up, and see what it does. When someone gives you a gun and suggests you pull the trigger, check what it is loaded with first.

One way is CBL ADV as first line in your program (or anywhere before procedure division if you want no-one to be able to find it easily). Check in the manual about what columns are OK, or just try it.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Jun 06, 2011 2:17 pm
Reply with quote

man, forget the options stuff, it will take another week to educate the ts on compiler options.

just, simply do 1 of 2 things:
  • remove 'after advancing' from your WRITE statement
  • extend you output record 1 char, and do not put anything in the 1st character.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jun 06, 2011 2:51 pm
Reply with quote

Hello,

You need to get permission BEFORE modifying any of the compiler options. . .

Some places will not accept code that has changes to the "standard" compiler options for promotion.

Suggest you do as DBZ suggests.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Jun 06, 2011 3:20 pm
Reply with quote

Yes, sorry. Topic dragging on so long, I forgot that we were only asking what it was set to originally.

Hopefully this is the end, and the outstanding question about AFTER ADVANCING 2 can continue to be ignored if TS gets output that is wanted.
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 Goto page Previous  1, 2

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
Search our Forums:

Back to Top