Abel
Abel

Reputation: 113

Printing records from a VSAM KSDS shows characters with periods

I am trying to view the contents of a VSAM dataset using the following jcl code:

//REPRO2   JOB  REPROJCL
//IDCAMS   EXEC PGM=IDCAMS
//SYSPRINT DD   SYSOUT=A
//SYSIN    DD   *,SYMBOLS=EXECSYS
      PRINT -
            INDATASET(ZXP.TEST.GAS.PRODPROC) -
            CHAR
/*

However the data has periods for example:

0KEY OF RECORD - 94...-...6-594
 94...-...6-594*Y..1ZS0.UGV...==
0KEY OF RECORD - 94...-...4-521
 94...-...4-521*Y...Y2..LVJ1Y...
0KEY OF RECORD - 97...-...0-101

How can I view the data without periods, does printing in hex then converting to ascii/ebcdic work?

Upvotes: 1

Views: 141

Answers (1)

pjfarley3
pjfarley3

Reputation: 94

You should use the DUMP option on the PRINT statement instead of CHAR. That will print the records in hexadecimal dump format so you can see the binary values.

Upvotes: 1

Related Questions