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

Image hardcoding in Module


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

New User


Joined: 20 Dec 2007
Posts: 29
Location: India

PostPosted: Thu Jun 26, 2008 1:12 pm
Reply with quote

I have COBOL module which is used produce report whenever someone placed the order and the same report is sent to printer. Now i have to make change that was hardcoded in this report like Logo of Company, Signature of Marketing head person in module. Same images are hardcoded in the module.

How i can change that images?

Please find the one of the image hardcoded in module.

10 FILLER PIC X(08) VALUE '..L¿ö...'.

I tried to print the report in spool but same value is display as defined in code.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Jun 26, 2008 1:15 pm
Reply with quote

The spool will contain the sysout as generated
( and certainly images, logos, signature will look like garbage )
the only way to check is to look at the real output on the proper printer
Back to top
View user's profile Send private message
Ashsih

New User


Joined: 20 Dec 2007
Posts: 29
Location: India

PostPosted: Thu Jun 26, 2008 1:18 pm
Reply with quote

PFA the report that was displyed in spool and after printing.
Back to top
View user's profile Send private message
Ashsih

New User


Joined: 20 Dec 2007
Posts: 29
Location: India

PostPosted: Thu Jun 26, 2008 1:21 pm
Reply with quote

As printer is located US and i am working in India. Also i am doing testing work so People located in printer side will not help out much on this.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Jun 26, 2008 1:27 pm
Reply with quote

research the original specifications of the application !

very little we can do without the details
Back to top
View user's profile Send private message
Ashsih

New User


Joined: 20 Dec 2007
Posts: 29
Location: India

PostPosted: Thu Jun 26, 2008 2:40 pm
Reply with quote

Also can anyone tell me how i can convert '..L¿ö...'. this value into image. Or supposed i have any image how i insert into my code.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Thu Jun 26, 2008 4:26 pm
Reply with quote

good chance the '..L¿ö...'. is the necessary hex configuration for the image to be printed on a printer that will print images. Is that what you are testing on?
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: Thu Jun 26, 2008 8:56 pm
Reply with quote

Hello,

If you expand the "garbage" into hex, you should see "escape sequences" that "program" the printer.

If you post the hex, i may be able to decipher some of it (been a long time since i had to program an HP LaserJet to do what your code does. . .). Hopefully, your code is using PCL rather than PostScript.
Back to top
View user's profile Send private message
Itanium

Active User


Joined: 22 Jan 2006
Posts: 114
Location: India

PostPosted: Tue Jul 01, 2008 5:09 pm
Reply with quote

I do work in a similar kind of application. The image name will be hardcoded in the program or read from the file.

But the actual image needs to be loaded into the Printer, when printing this document the image Id gets mapped with the actual image in the printer and Print.
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

 


Similar Topics
Topic Forum Replies
No new posts DB2 Table - Image copy unload IBM Tools 2
No new posts SXP Tool for PL1 or Module library ma... PL/I & Assembler 0
No new posts How to list BMS MAP screens in BMS Ph... CICS 2
No new posts unable to compile module PL/I & Assembler 6
No new posts I need help with analysis of a COBOL ... All Other Mainframe Topics 14
Search our Forums:

Back to Top