Carriage control



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

Carriage control

Postby resh_97 » Fri Apr 03, 2020 2:59 pm

the code i am reviewing is printing the carriage control instead of advancing the line.where do i check for solving this error.where is the control character defined?can somebody help with this
resh_97
 
Posts: 3
Joined: Fri Apr 03, 2020 2:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Carriage control

Postby NicC » Fri Apr 03, 2020 3:17 pm

Show your code (the parts that declare the datasets and records) and JCL (use the code tags). Carriage control characters are byte 1 of line as you woud have discovered if you had bothered to actually read the other topic that you posted to.
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: Carriage control

Postby NicC » Fri Apr 03, 2020 6:58 pm

Do not ask questions via private messages. No one is asking you to show data just the SELECT/ASSIGN and the related JCL. You can obfuscate any dataset names.
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: Carriage control

Postby Robert Sample » Fri Apr 03, 2020 8:02 pm

the code i am reviewing is printing the carriage control instead of advancing the line.
What kind of printer? What does the DD look like for the file you are printing to?
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Carriage control

Postby resh_97 » Sun Apr 05, 2020 11:03 pm

Hi Robert ,
The dd statement looks like this..well dlbl actually since it is in z/vm

dlbl xxxx,'filename',,VSAM,CAT=yyyy
resh_97
 
Posts: 3
Joined: Fri Apr 03, 2020 2:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Carriage control

Postby NicC » Mon Apr 06, 2020 1:07 pm

That looks like your input dataset (not file). What about the information for your output DD as requested by Robert and the COBOL code for declaring the output as requested by me?
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


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post